In whatever event you are using to perform your "undo", test if the form is
Dirty first:
If Me.Dirty Then
If MsgBox("Undo?", vbYesNo+vbDefaultButton2) Then
Me.Undo
End If
End If
Perhaps the real solution might be not to dirty the form as soon as you move
to the (new?) record.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Leslie" <le*****@oregonaero.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
On a form, I create a record and save, and am ready to enter another.
I decide to Quit the form which executes an "Undo" in case there is
data entered. This then tries to "delete" my just saved record.
I want to "Reset" my Undo ability once I've saved a record. Is there a
way to reset the Undo?
Any help or tips would greatly help. I'm looking for syntax and
attachment points.
Cheers,
Leslie