L
Linda RQ
Hi Everyone,
Using Access 2003. I added a comand button to my form and used the wizard.
This works fine in opening up the Find window but I would like the default
settings to be
--Look In: "Last Name" (This is the default because my focus is in this
control at the time the window pops up. I am confused because "Last Name"
is the name of the label, the name of the control is PtLName)
--Match: Start of field (Default is Whole Field)
--Search: All (This is the Default)
Below is the code behind the button right now and I don't see anything in
there about how the window opens up. Is this even possible to do?
Thanks,
Linda
Private Sub cmdFindRecord_Click()
On Error GoTo Err_cmdFindRecord_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_cmdFindRecord_Click:
Exit Sub
Err_cmdFindRecord_Click:
MsgBox Err.Description
Resume Exit_cmdFindRecord_Click
End Sub
Using Access 2003. I added a comand button to my form and used the wizard.
This works fine in opening up the Find window but I would like the default
settings to be
--Look In: "Last Name" (This is the default because my focus is in this
control at the time the window pops up. I am confused because "Last Name"
is the name of the label, the name of the control is PtLName)
--Match: Start of field (Default is Whole Field)
--Search: All (This is the Default)
Below is the code behind the button right now and I don't see anything in
there about how the window opens up. Is this even possible to do?
Thanks,
Linda
Private Sub cmdFindRecord_Click()
On Error GoTo Err_cmdFindRecord_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_cmdFindRecord_Click:
Exit Sub
Err_cmdFindRecord_Click:
MsgBox Err.Description
Resume Exit_cmdFindRecord_Click
End Sub