Article ID: 235222 - Last Review: October 11, 2006 - Revision: 2.2 ACC2000: Undo Method Causes IPF When Used Outside Form's Class ModuleThis article was previously published under Q235222 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). On This PageSYMPTOMS
If you invoke the Undo method of a form outside the form module, such as in a global procedure, a global function, or from the Immediate window, you may receive an error similar to one of the following:
Dr. Watson for Microsoft Windows NT
An application error has occurred
and an application error log is being generated.
MSACCESS.exe
Exception: access violation (0xc0000005), Address: 0x3005e7c4
On Microsoft Windows 95/98
MSACCESS caused an invalid page fault in
module MSACCESS.EXE at 015f:3005e7c4.
RESOLUTION
To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).
To obtain SR-1/SR-1a, click the article number below to view the article in the Microsoft Knowledge Base: 245025
(http://support.microsoft.com/kb/245025/EN-US/
)
OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)
To temporarily work around this problem do the following.CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. Instead of invoking the Undo method from a public module, call Form.Undo from the code module of the form, as in the following example:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Office 2000 SR-1/SR-1a.
MORE INFORMATIONCAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. Steps to Reproduce Behavior
REFERENCESFor more information about the Undo method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type undo in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
| Article Translations
|
Back to the top
