SendKey to open find dialog

B

BrerRabbit315a

I am using the following code to attempt to open a find dialog box, to search
any part of the field, but only in the current field, no others.

Private Sub searchunit_Click()

Unit.SetFocus
SendKeys "%ha%e"
DoCmd.RunCommand acCmdFind

End Sub

But it does not set the dialog box default to search the current field only
and it searches all the field on the form. How can I search the specific
field only in the form?
 
Top