Discussion Locked

Rollback in Access

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am writing some code that allows the user to cancel any changes that they have made, i therefore need to use the esc key function, what is the code behind it?

7 replies

by is

The simple answer is to use the sendkeys statement:

SendKeys "{ESC}", False

The true/false is whether you want the system to wait for the keystrokes to process.

by sales

you might try making a macro using the "sendkeys" command
the symbol for the escape key is
{esc}
then call the macro from your code
good luck
-Doug (Bizproz)

by dushy_ant

Capture the keycode value in the keydown event of the textbox.
If the keycode value is 27 then you know that the ESC key is Pressed.

This discussion is closed to new replies.