i am using
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
in a form
when a user types in anything, but decides not to save. they will click on close..
the
oCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
is for the close button but if the user didnt type in anything and simply just wats to look at the record, and clicks on close they will get an error meesage saying "undo is unavaliable" from visual basic. how do u supress this error mesage or get around this?
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
in a form
when a user types in anything, but decides not to save. they will click on close..
the

is for the close button but if the user didnt type in anything and simply just wats to look at the record, and clicks on close they will get an error meesage saying "undo is unavaliable" from visual basic. how do u supress this error mesage or get around this?