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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2003 how to activate button after pressing enter on form?

Status
Not open for further replies.
Jan 10, 2003
41
0
0
US
We have an Access 2003 form with several fields and a command button which activates a macro to open a query. When you press tab or enter, it cycles through to the next field.

We would like to have it activate the command button when you press enter (so you don't have to go to each field).

Any ideas?

P.S. I'm a VBA rookie...

Thanks!
 
Nevermind - I found the answer in the Access Forms thread:

Open the Properties window of the Form.
Select the command button you want.
Change the Default value to Yes.

Whenever Enter is pressed, this command button is activated.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top