Exit Withot Saving.

N

Nad

Hi Gents,
I have a form attached with a query. I need to put a command button on the
form
" Exit Without Saving" so that user can exit without saving their changes.
What code should i write for this button?

Please help.
Regards.
 
C

Chuck

That would work if someone actually enters any information, but you will get
an error when someone clicks the button and did not enter information. You
get an error indicating that the UNDO is not available at this time. I
normally disable a button like that until someone enters any information and
then it becomes available.
 
Top