I used this code on a combo box in an Access 2000 database (using 2002):
Private Sub cboSelectAction_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "lngTaskID=" & cboSelectAction
If Not rst.NoMatch Then
Me.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing
End Sub
It works fine. But when I tried the code in another database (also a 2000 database but using 2002), it tells me it doesn't recognize FindFirst. Is there an option or something turned off?
Linda Adams
Visit my web site for writing and Microsoft Word tips: Official web site for actor David Hedison:
Private Sub cboSelectAction_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "lngTaskID=" & cboSelectAction
If Not rst.NoMatch Then
Me.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing
End Sub
It works fine. But when I tried the code in another database (also a 2000 database but using 2002), it tells me it doesn't recognize FindFirst. Is there an option or something turned off?
Linda Adams
Visit my web site for writing and Microsoft Word tips: Official web site for actor David Hedison: