Setting parameters for FindRecord

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have added a command button to find a record. I would like to change the
default value of the "Match" field to "anypart of the field".

How can I do this

Using the Command button wizard, here is my code:

Private Sub cmdFindRec_Click()
On Error GoTo Err_cmdFindRec_Click

Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70

Exit_cmdFindRec_Click:
Exit Sub

Err_cmdFindRec_Click:
MsgBox Err.Description
Resume Exit_cmdFindRec_Click

End Sub


Thanks
 
Back
Top