I have a form with a save and cancel button.
My cancel button has...
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
DoCmd.Close , , acSaveNo
but if the user has not made any changes, VBA creates an error stating "UNDO is not available at this time".
Is there a way to run a check to avoid this error?
Thanks for the suggestions!
My cancel button has...
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
DoCmd.Close , , acSaveNo
but if the user has not made any changes, VBA creates an error stating "UNDO is not available at this time".
Is there a way to run a check to avoid this error?
Thanks for the suggestions!