General discussion

Locked

Rollback in Access

By tempfn1 ·
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?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Rollback in Access

by IS In reply to Rollback in Access

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.

Collapse -

Rollback in Access

by tempfn1 In reply to Rollback in Access

The question was auto-closed by TechRepublic

Collapse -

Rollback in Access

by sales In reply to Rollback in Access

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)

Collapse -

Rollback in Access

by tempfn1 In reply to Rollback in Access

The question was auto-closed by TechRepublic

Collapse -

Rollback in Access

by Dushy_ant In reply to Rollback in Access

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.

Collapse -

Rollback in Access

by tempfn1 In reply to Rollback in Access

The question was auto-closed by TechRepublic

Collapse -

Rollback in Access

by tempfn1 In reply to Rollback in Access

This question was auto closed due to inactivity

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums