The information in this article applies to:
Advanced: Requires expert coding, interoperability, and multiuser skills. This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp). SUMMARY
This article shows you how to create and use a form module procedure
called AfterUndo. The AfterUndo procedure runs when edits made to the
current record are undone.
Microsoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp MORE INFORMATIONWhen you click Undo Record on the Edit menu or press the ESC key twice to undo changes to the current record in a form, there is no built-in form event that is triggered. The AfterUndo procedure simulates an AfterUndo event so that you can restore calculations that may have been set while the record was being edited. Creating the AfterUndo ProcedureTo create the AfterUndo procedure, follow these steps:
How to Use the AfterUndo ProcedureThe following example demonstrates how to use the AfterUndo procedure:
REFERENCESFor more information about determining whether a record on a form is being edited, please see the following article in the Microsoft Knowledge Base: Q210334 How to Automatically Detect If a Form Is Being Edited.For more information about undoing changes, click Microsoft Access Help on the Help menu, type undoing changes when editing records in the Office Assistant or the Answer Wizard, and then click Search to view the topic. Additional query words: onundo
Keywords : kbusage kbdta AccCon FmsEvnt FmsHowto |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |