S
Steve S
Have a form whose sole purpose in life is to ADD new records to a table. I
have a SAVE button on the form that handles various data integrity checking
and the users should use that button to save data. If any or all fields are
dirty and the user closes the form I do not want any data saved.
I have tried putting 'If Me.Dirty Then Me.Undo' in both the forms Close and
Unload events but junk still gets saved.
One solution is to not bind the form to the table and use DAO code to update
the record but there must be a way to just undo updates so junk is not
automatically saved on close
Any and all help is appreciated
steve
have a SAVE button on the form that handles various data integrity checking
and the users should use that button to save data. If any or all fields are
dirty and the user closes the form I do not want any data saved.
I have tried putting 'If Me.Dirty Then Me.Undo' in both the forms Close and
Unload events but junk still gets saved.
One solution is to not bind the form to the table and use DAO code to update
the record but there must be a way to just undo updates so junk is not
automatically saved on close
Any and all help is appreciated
steve