The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
However, if you select the Edit menu, Undo Current Record is available and works properly. CAUSEThe Undo Current Record command is not available for use with a macro run from a form's BeforeUpdate property. STATUSThis behavior no longer occurs in Microsoft Access version 7.0. RESOLUTIONIn your macro, enter CancelEvent as the first action, and then follow that with the SendKeys action to send an ESC key. (This has the same effect as choosing the Undo Current Field command from the Edit menu.) MORE INFORMATIONPage 48 of the Microsoft Access "Language Reference," versions 1.0 and 1.1, discusses uses for this type of macro in the BeforeUpdate property, and indicates that calling Undo Current Record works correctly in such a macro. This is not the case. Calling Undo Current Record causes the error message above and should not be used. REFERENCESMicrosoft Access "Language Reference," versions 1.0 and 1.1, "BeforeUpdate, AfterUpdate Properties," pages 47-48 Additional query words: kberrmsg
Keywords : kbusage McrActn |
Last Reviewed: March 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |