sphere_monk
Registered User.
- Local time
- Yesterday, 19:44
- Joined
- Nov 18, 2002
- Messages
- 62
I have the following code looking for a record:
Private Sub cboWOID_AfterUpdate()
MsgBox ("Running cboWOID_AfterUpdate")
Dim strCriteria As String
Dim rst As ADODB.Recordset
Set rst = Me.RecordsetClone
strCriteria = "WOID = " & cboWOID
rst.Find strCriteria
Me.Bookmark = rst.Bookmark
End Sub
My problem is that when the code runs, I get a Run-time error 13 - "Type mismatch" on the "Set rst = Me.RecordesetClone"
Could someone please help? I'm running Access 2002.
Private Sub cboWOID_AfterUpdate()
MsgBox ("Running cboWOID_AfterUpdate")
Dim strCriteria As String
Dim rst As ADODB.Recordset
Set rst = Me.RecordsetClone
strCriteria = "WOID = " & cboWOID
rst.Find strCriteria
Me.Bookmark = rst.Bookmark
End Sub
My problem is that when the code runs, I get a Run-time error 13 - "Type mismatch" on the "Set rst = Me.RecordesetClone"
Could someone please help? I'm running Access 2002.