I have a search form in Access and would like to be able to run the search routine when a user hits the Enter key after filling in their serach criteria. Is there an action event that I can call the search function from with a text box?
You could try putting your code in the onkeydown or onkeypress events. I believe you can trap for a specific key code and only execute then. Hope this helps, Ken
- If you are flammable and have legs, you are never blocking a fire exit.
Mitch Hedburg
You could also tie an Event Procedure to the AfterUpdate property of the textbox. This way, any time the user changes or enters data into the textbox, then either presses Enter or tabs out of the textbox, the Event Procedure code will be executed.
Cruising the Information Superhighway (your mileage may vary)
I would add a Run Search [blue]Command Button[/blue] and run my code from their, espcially since its too easy for a user to hit enter (out of habit) and trigger premature results.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.