Try KeyDown or KeyPress event

W

WCyrek

look up those two funtions in the help docs

The KeyDown and KeyUp events are typically used to
recognize or distinguish between:

Extended character keys, such as function keys.


Navigation keys, such as HOME, END, PAGEUP, PAGEDOWN, UP
ARROW, DOWN ARROW, RIGHT ARROW, LEFT ARROW, and TAB.


Combinations of keys and standard keyboard modifiers
(SHIFT, CTRL, or ALT).


The numeric keypad and keyboard number keys.
The KeyDown and KeyUp events do not occur under the
following circumstances:

The user presses enter on a form with a command button
whose Default property is set to True.


The user presses esc on a form with a command button
whose Cancel property is set to True.
 

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