M
max
I 've a form where an user can modify anything. I added this code to the
close button in oprder to UNDO if a user close the form without save. But if
the user open the form by mistake and press the close button an error
appears. They also have a SAVE button. I just want to save the changes ONLY
if they press the SAVE button.
UNDO command:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, ,acMenuVer70
Error:
The command or action UNDO isn't available now
close button in oprder to UNDO if a user close the form without save. But if
the user open the form by mistake and press the close button an error
appears. They also have a SAVE button. I just want to save the changes ONLY
if they press the SAVE button.
UNDO command:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, ,acMenuVer70
Error:
The command or action UNDO isn't available now