I tried that and this
DoCmd.RunCommand acCmdFind
SendKeys "~ha~lf~nsometext"
and it does not do anything other than of the Find dialog ...
?
Main Topics
Browse All TopicsIs there any way to change the default value when using the Ctrl + F (Find & Replace) function to search a specific field using the "any part of field " option?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Works for me. It is a technique suggested in a Ms knowledge base article but I can't find it now. See http://www.accessruncomman
First of all, please forgive me if this sound completely foolish:)
I'm assuming that the way to invoke this "code" would be a command button?
Also, when I add the below code, it disables and greys out the look in field and shows it as Form1: Form (my testing form)
As I have several fields on my form that my users need to be able to search, this doesn't seem right.
Am I missing something?
Business Accounts
Answer for Membership
by: thenelsonPosted on 2009-11-17 at 20:49:01ID: 25846672
Using Ctrl + F - no. But you can fill the valves and open the find dialog with code:
SendKeys "~ha~lf~nsometext"
RunCommand acCmdFind
SendKeys send keystrokes to the find dialog:
~ha = match any part of the field, ~hs = start, ~hw = Whole
~lf = look in plus the first letter of the field name.
~n = match plus the text to match
RunCommand acCmdFind opens the find dialog