I have a form which allows only INSERT of a single row into a table.
Problem is that it seems to write a record (as dirty data) as soon as it is loaded.
The user is required to enter some fields for which there is validation coded.
BUT.... if the user clicks on [X] (or does a right-click Close) then the dirty data stays in the table.
Can I incorporate a Commit/Rollback function in the DoCmd Close event ?
So that I can revalidate the data in the Close event, and if it is invalid then cancel the insert into the table?