467,903 Members | 1,809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,903 developers. It's quick & easy.

RunCommand for "escape"

What is the docmd.runcommand accmd? for the equivalent of pressing the
escape button when adding a record to a table?

I'm setting up a bound form and would like to have a "cancel" button
that does this.
Thanks in advance.
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #1
  • viewed: 8240
Share:
2 Replies
Try

DoCmd.RunCommand acCmdUndo

SendKeys "{Esc},{Esc}" works, too. Because it isn't language dependent as
some Menu commands are, it is a more reliable use of SendKeys.

Larry Linson
Microsoft Access MVP

"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cj**********@coranto.ucs.mun.ca...
What is the docmd.runcommand accmd? for the equivalent of pressing the
escape button when adding a record to a table?

I'm setting up a bound form and would like to have a "cancel" button
that does this.
Thanks in advance.
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #2
Larry Linson wrote:
DoCmd.RunCommand acCmdUndo


That does the trick, thanks very much.

--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Lyn | last post: by
4 posts views Thread by Peter | last post: by
3 posts views Thread by NecroJoe | last post: by
5 posts views Thread by Prince Kumar | last post: by
reply views Thread by Jeff Groves | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.