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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top