Find Feature

R

Ray

I created a button on a form that will be used to find a record. Is there way
to set the find button i created to only look for info in a specific field
rather than looking in the field the cursor is in at the time? Any help would
be appreciated.

Thanks,
Ray
 
A

Allen Browne

In the Click event of your command button, SetFocus to the field you want to
search before you activate the search, e.g.:
Me.City.SetFocus
...

If you want to search whichever field the cursor was in previously:
Screen.PreviousControl.SetFocus
 
Top