Link to home
Start Free TrialLog in
Avatar of nharbour
nharbourFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Close Form Without Saving Record (Command Button)

I have a Command Button on a form which runs a macro with a single Close satement to close the form. However, if any data has been entered into any of the fields in the form before the button is clicked, the record is saved (even if it is incomplete). I want it to close the form without saving any of the data that has been entered. I know this is probably a fairly simple question, but the solution just escapes me!!!

Cheers,

Nick.
ASKER CERTIFIED SOLUTION
Avatar of wtf666
wtf666

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jangeador
jangeador

If the record is saving, chances are that it is complete by the table standards.  you could set the fields you need to be required in the table.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, points to wtf666
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

1William
EE Cleanup Volunteer