Below is my workaround in creating a Cancel button that actually undo any changes and close the form. This is Access 2007 embedded macro set for the Cancel button.
| Condition | Action | Arguments | Comment |
| On Error | Next, | ||
| [Form].[Dirty] | RunCommand | Undo | Perform Undo only when form content is modified, else, skip |
| [MacroError]<>0 | MsgBox | =[MacroError].[Description], Yes, None, | Spit out the error message from system |
| Close | , , Prompt |
No comments:
Post a Comment