I have data entry forms but I want to include a button whcih allows a user to close the form but not save any current information that they may have entered in the form. As default Access saves the record to the table when the form is closed.
At present i have the following code in the button:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
DoCmd.Close
However the 'undo' isn't entirely satisfactory. Is there any other way around this?
Also should I change the DoMenuItem to RunCommand. According to the help files the DoMenuItem has been scrapped since '97 but that's what Access 2000 put's in itself?????
Liam
At present i have the following code in the button:
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
DoCmd.Close
However the 'undo' isn't entirely satisfactory. Is there any other way around this?
Also should I change the DoMenuItem to RunCommand. According to the help files the DoMenuItem has been scrapped since '97 but that's what Access 2000 put's in itself?????
Liam