SendKeys Process

G

Guest

I am presenting the user with a MsgBox containing Yes/No buttons. If they
select No, they are wanting to cancel the transaction. Currently I tell them
in the message to press the ESC key twice to abort the update. I want to
abort the update from within code if they select "NO", but executing two
"SendKeys vbKeyEscape" statements does not seem to work. Any suggestions on
how to totally cancel the update from within code?

Earl Phillips
Volunteer Ex-mainframer trying to learn Access VBA
Harvesters Community Food Network
 
G

Guest

A single Me.Undo does the job. Thanks for the help. Every day I learn more.

Earl Phillips
Harvesters Food Network in Kansas City
 

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