how do you close a data entry form without saving record

  • Thread starter Thread starter wirelan
  • Start date Start date
W

wirelan

I need to know how to close a data entry form using macros without saving the
data in the form such as a cancel button on the form
 
You close without save buttion would look like:


if me.Dirty = true then
me.Undo
end if

docmd.Close
 
I need to know how to close a data entry form using macros without saving the
data in the form such as a cancel button on the form

I tend to use VBA rather than macros, but there should be an UNDO action that
you can run from a macro. That action will erase all changes made by the user
(restoring an existing record to its state when the user opened it, or
removing a new record altogether).
 
Back
Top