Access: using one form to undo changes on another form

  • Thread starter MikeLostinWoods
  • Start date
M

MikeLostinWoods

I'm trying to use a "pop-up" form to confirm back out of a main form without
making changes to the database. I can't seem to figure out the VBA code to
undo the changes on the first form by pressing a button on the second form.
Any ideas?
 
T

TonyT

Can you not just use a msgbox to give confirmation of pressing your *cancel*
button and then just use:

If Me=Dirty Then
Me.Undo
End If

If they accept (Yes, Confirm etc)

TonyT..
 
M

MikeLostinWoods

Thanks Tony, Message Box did the job. Not exactly the customized feel I was
going for, but it works great!
 
Top