B
Bakema
I am trying to use a combobox and recordset clone property to search for
records in a form. The record selected in the combobox should be compared
with the record set and then the form record should be moved to the selected
record as follows:
Private Sub Combotest_AfterUpdate()
Dim rstCriteria As String
Dim rstClone As ADODB.Recordset
Set rstClone = Me.RecordsetClone
strCriteria = "Test2 = " & Me!Combotest
rstClone.Find strCriteria
Me.Bookmark = rstClone.Bookmark
End Sub
The above procedure comes from a book, but fails to work on the line: Set
rstClone = Me.RecordsetClone with the message 13 type mismatch.
Any ideas why this does not work?
bakema
records in a form. The record selected in the combobox should be compared
with the record set and then the form record should be moved to the selected
record as follows:
Private Sub Combotest_AfterUpdate()
Dim rstCriteria As String
Dim rstClone As ADODB.Recordset
Set rstClone = Me.RecordsetClone
strCriteria = "Test2 = " & Me!Combotest
rstClone.Find strCriteria
Me.Bookmark = rstClone.Bookmark
End Sub
The above procedure comes from a book, but fails to work on the line: Set
rstClone = Me.RecordsetClone with the message 13 type mismatch.
Any ideas why this does not work?
bakema