How to execute Command Button by hiting 'Enter'

Anna Anna

Registered User.
Local time
Today, 13:09
Joined
Jan 26, 2003
Messages
17
Hi!
Any idea how to execute click event procedure on command button by hiting
'Enter' on a keybord instead to click on that button?
Thanks for your help.
Anna
 
Anna,

If the focus is on the command button, pressing Enter will be the same as clicking it (unless you have done something strange with the OnKey[something] event for the button).

Open the form, click anywhere in the section (header, detail, or footer) containing the button, then press Tab until you see a dotted rectangle around the name of the button. Then press Enter and the button's OnClick action should kick off.

Jim
 
You can also eliminate the steps of tabbing to the button by setting the button's default property to 'Yes'
 

Users who are viewing this thread

Back
Top Bottom