Home  Fees/Services  Access Examples  Tutorials  Access Download  Articles  Search  Contact  Privacy  Links
Custom Database Design Consultants
 
Access Programming Examples
 
Access Example Downloads
Access Form Events Access Event Coding Examples
Form Event Programming
Access VBA Events

 Database Tutorials > Form Event Tutorials > Undo Event

                               

After Insert Event
After Update Event
Before Update Event
On Change Event
On Close Example
On Current Event
On DblClick Event
On Error Event
On Exit Event Help
VBA Timer Event
Undo Event Method


Undo Event Example

Form Event Examples - Visual Basic Code Samples

Visual Basic Undo event happens when the user undoes a change to a combo box control, a form, or a text box control.

Undo Event Visual Basic Example:

The following example shows how to trap the undo event on a form.  In this case we will confirm that the user wants to cancel the undo operation.

Private Sub Form_Undo(Cancel As Integer)
If MsgBox("Do you want to cancel the Undo?",vbYesNo) = vbYes Then
    Cancel = True
Else
    Cancel = False
End If
End Sub


Contact Information

Event Procedures in MS Access
Microsoft Access 2003 2000 2002(XP) 97 All Windows Versions