VBA to save form

LB79

Registered User.
Local time
Today, 16:57
Joined
Oct 26, 2007
Messages
505
Hello,

Does anyone know what the code would be for an open form to save itself?

Thanks
 
DoCmd.Save acForm, form_name_as_string
 
Its the form not the record...

With
DoCmd.Save acForm, form_name_as_string

How would I type this if my form were called FORM1? Ive tried a few things and its debugging me.

Thanks
 
Its the form not the record...

With
DoCmd.Save acForm, form_name_as_string

How would I type this if my form were called FORM1? Ive tried a few things and its debugging me.

Thanks

err...
Code:
docmd.save acform, "FORM1"
 
Thanks - ive tried this and its works, but then when i close the form and open it again, the form reverts back to what it was before the save function. Do you know what Im doing wrong?
 

Users who are viewing this thread

Back
Top Bottom