Enter = OK button??

J

Joel Montalvo

I have a pop-up form to prompt for info with a button that
will close the form and open another. That part works.
My problem is that when the user inputs the data and
presses the enter key, it just tabs to the next control
which is the command button. They press enter again and it
works. They have to press enter twice.
What do I have to do to have it recognize the enter key as
if they clicked the button?
 
D

Dirk Goldgar

Joel Montalvo said:
I have a pop-up form to prompt for info with a button that
will close the form and open another. That part works.
My problem is that when the user inputs the data and
presses the enter key, it just tabs to the next control
which is the command button. They press enter again and it
works. They have to press enter twice.
What do I have to do to have it recognize the enter key as
if they clicked the button?

On the property sheet for the button in form design view, on the Other
tab of the property sheet, set the button's Default property to Yes.
 

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