REQUERY INSIDE THE FIND COMMAND BUTTON

V

Vicki

I’m looking for a way to attach a requery command to the find command button

I've placed the following in the command line of the find record command button as indicated below

Private Sub FindRecord_Click(
On Error GoTo Err_FindRecord_Clic

Screen.PreviousControl.SetFocu
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer7

Me.Requery ----------------------------------------------------------------I've added this command

Exit_FindRecord_Click
Exit Su

Err_FindRecord_Click
MsgBox Err.Descriptio
Resume Exit_FindRecord_Clic


End Su

Works great accept for one problem. When you try to search on a different field other then the first field in the form the find command doesn't work
 

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