I have a form displaying data. On this form I have 'Save' and 'Cancel' buttons. My problem is that the code behind the 'Cancel' button (see following) doesn't seem to recognize when an alteration has occurred.
No matter which field(s) I change, the code always hits the 'No Change' part and the alterations are saved.
What needs to happen for the 'Dirty' part to be applicable?
Code:
If Me.Dirty Then
MsgBox "Changed"
Me.Undo
Else
MsgBox "No Change"
End If
What needs to happen for the 'Dirty' part to be applicable?
