Find button

R

Ruth

Hi,there
I want to use a command button in a form to find record
but I found it always display no findings no matter what I
input. The code looks like this:

Private Sub CmdFind_Click()
On Error GoTo Err_CmdFind_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, ,
acMenuVer70
Exit_CmdFind_Click:
Exit Sub
Err_CmdFind_Click:
MsgBox Err.Description
Resume Exit_CmdFind_Click
End Sub

Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top