ASKER
Private Sub FindButton_Click()
On Error GoTo Err_FindButton_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_FindButton_Click:
Exit Sub
Err_FindButton_Click:
MsgBox Err.Description
Resume Exit_FindButton_Click
End Sub
ASKER
ASKER
ASKER
ASKER
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
Also, is this the Data Entry form you were working with in your earlier questions (i.e. the form where you've set DataEntry = Yes in the form properties)? If so, then I don't believe you can use any search methods in that instance, but I could be wrong.
If you are, you can always use the RecordsetClone to find your record, and then Bookmark the form. For example, if I pass in a value for a CustomerID in my OpenArgs, I could do this:
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "CustomerID=" & Me.Openargs
If Not rst.NoMatch Then
Me.Bookmark = rst.Bookmark
End If