Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enter key activates action

Status
Not open for further replies.

stealth3

Technical User
Sep 9, 2004
34
AU
Hello

I have a menu (form) with three command buttons titled Author, Title and Subject Keyword. When I click on one of those buttons it opens a text box with the cursor in it. After the user types in their search query, they must then use the mouse to click on the command button titled Search to activate the search.

Is it possible to produce VBA code which would activate the search by hitting the Enter key on the keyboard?
 
You don't need any code at all. In the properties of the Search button, find the Default property (other tab), and set it to yes.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top