Labels versus Buttons (1 Viewer)

Randomblink

The Irreverent Reverend
Local time
Today, 12:31
Joined
Jul 23, 2001
Messages
279
Question:

I use labels with OnClick events INSTEAD of buttons.
I do this because I have had too many databases that get hosed because the average user tabs to the wrong button and hits enter...or...they leave the focus on one button, switch records, and hit enter...also hosing a record or more...

So...

With that in mind...
Does anyone know how to set a shortcut key to that labels OnClick event?

Help! If you can...
 
To run a macro or event procedure when the KeyPress event occurs, set the OnKeyPress property to the name of the macro or to [Event Procedure]. Check the help files for the KeyPress Event for more options.

Here are a couple of tips I use to control my users clicks:

  • I turn the Tab Stop off for all buttons.

    At the end of the buttons code, I put the focus to a hidden button so that no user buttons or fields have the focus.

    I test if the currerent record is Dirty before I allow them to move to the next record, click a button, etc. If the record is found dirty, I then give the user the choice to save, undo or do nothing (but not the action they originally clicked).

HTH
 

Users who are viewing this thread

Back
Top Bottom