Marshall Brooks
Member
- Local time
- Today, 17:14
- Joined
- Feb 28, 2023
- Messages
- 696
I don't claim to be the expert and I'm not even saying you are wrong. What you wrote is correct, but it isn't what I am doing.Cancel = True cancels the save. It does NOT stop the form from being dirty . You need to use
Me.Undo
Cancel = True
to perform both actions.
Cancel = True by itself would probably leave the error message - not sure.
What I have is Me.Undo without Cancel=True.
Technically what that does (I think) is undoes all the changes (including the date modified field) and then SAVES the record.
Like the Word analogy, it's the difference between opening a Word file, adding a space and clicking Close and don't save changes as opposed to removing the space and closing and saving. The file date is different, but the file is essentially the same.
Could you see my question in Reply #16?