PDA

View Full Version : [SOLVED] Enter Key activates Command Button



Philcjr
07-21-2005, 06:58 AM
All,

I have a user form that when acivatied, I would like to allow the user to select/hit "enter" either from the numberpad or keyboard.

By doing so, I would like the action to trigger the command button (cmd_enter) to be clicked.

Thanks,
Phil

Killian
07-21-2005, 07:03 AM
You can force this, but the standard key to fire the click event of the control with focus is the spacebar

Norie
07-21-2005, 07:07 AM
Phil

Set the Default property of the command button to True.

Philcjr
07-21-2005, 07:13 AM
Norie,

Thanks - setting the "Default" property to "True" worked...

Thanks again