how do you close a data entry form without saving record

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
 
A

Albert D. Kallal

You close without save buttion would look like:


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

docmd.Close
 
J

John W. Vinson

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top