R
rob peterson
I have a form called client-form. All records are stored by clientID (ABCD,
etc).
I added a command button for find. When I click it, I see field "look in".
That has my client-form and clientID. If it is clientID, it will work.
Sometimes when I click it it shows client-form (grayed out) and will not
work. Is there a better way to search for a record from a form?
(Here is the code generated by the button wizard
Private Sub findclientID_Click()
On Error GoTo Err_findclientID_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_findclientID_Click:
Exit Sub
Err_findclientID_Click:
MsgBox Err.Description
Resume Exit_findclientID_Click
End Sub
etc).
I added a command button for find. When I click it, I see field "look in".
That has my client-form and clientID. If it is clientID, it will work.
Sometimes when I click it it shows client-form (grayed out) and will not
work. Is there a better way to search for a record from a form?
(Here is the code generated by the button wizard
Private Sub findclientID_Click()
On Error GoTo Err_findclientID_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_findclientID_Click:
Exit Sub
Err_findclientID_Click:
MsgBox Err.Description
Resume Exit_findclientID_Click
End Sub