if you used the wizard to create the form, chances are you'd have to use this syntax:
DoCmd.FindRecord [criteria]
For instance, if you were typing in a LastName text box and then clicked a button to find, you'd do this:
LastName.setfocus
DoCmd.FindRecord "LastName = '" & LastName & "'"
This pulls the value from the text box and searches for it.
brewdog
Main Topics
Browse All Topics





by: HelicopterPosted on 1998-12-17 at 14:09:53ID: 1971420
Try using the recordsetclone. e.g.
t "[lngYourID] = " & Me![txtYourTextbox]
Me.RecordsetClone.FindFirs
Me.Bookmark = Me.RecordsetClone.Bookmark
In the afterupdate event of the textbox or behind a command button.