close a form without saving

habbabub

Registered User.
Local time
Today, 10:40
Joined
Jan 24, 2008
Messages
73
i am using this as for my close form button so it dosent save any changes but it dosent seem to work

DoCmd.Close acForm, , acSaveNo

i get an error meesage "the object requires a Object name argument"

how can this be fixed
 
Name the form properly.

DoCmd.Close acForm, <FORM_NAME_HERE>, acSaveNo

You're pushing your luck here with all these obvious questions. :)
 
Also understand that acSaveNo does not apply to data you have entered in a record on your form! It applies to any changes you have made to the design of the form itself, i.e adding controls, changing formatting of controls on the form, changing Properties.
 

Users who are viewing this thread

Back
Top Bottom