By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,466 Members | 2,482 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,466 IT Pros & Developers. It's quick & easy.

How to emulate the action caused by 'Esc' button is VBA?

P: n/a
Hi, I tried:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
and
DoCmd.RunCommand acCmdUndo

None of them did the job accomplished by the 'Esc' button.

Could any one help me here? Thanks in advance.
ming

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
swingingming wrote:
Hi, I tried:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
and
DoCmd.RunCommand acCmdUndo

None of them did the job accomplished by the 'Esc' button.

Could any one help me here? Thanks in advance.
ming


[ControlName].Undo & Me.Undo (or [FormObject].Undo)

Replace "ControlName" and "FormObject" with your own names.

--
[OO=00=OO]
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.