Yes. The Click() event occurs when a user
- left clicks on command button with mouse,
- when focus is on command button, presses spacebar or enter.
Make sure that you don't have a command button with Default=.T. Otherwise pressing enter will always trigger Click() of that button.
>Sergey, tthks for your reply.
>
>If the code is put in the commandbutton's Click() event, and the user wants to run the code by landing on it (Say by pressing the Tab Key) and then hitting the Enter key, Is the Click event code run ?
>
>(This would be quite common for fast heads down data entry)
>
< snip >
--sb--