find command defaults

T

TMGreen

I have the find command on a button in a form. I would like to change the
defaults for the find command to the field that is active (where the cursor
is) at the time the find window is opened (control f key). (ie rather than
whole form, search just that field value). How can I do this?
 
A

Allen Browne

When you click the button, *it* is the active control.
Since the button is not bound to a field, the Find defaults to all fields.

SetFocus to Screen.PreviousControl if you want to Find on the field.
 
Top