Use code to save a newly created form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all, I am using createform to create a new form. I would like to be able
to close this new form using code and save this form to newname and not from
the design mode. Can this be done? Example please.

Thanks in advance!
 
Harry H said:
Hi all, I am using createform to create a new form. I would like to
be able to close this new form using code and save this form to
newname and not from the design mode. Can this be done? Example
please.

Thanks in advance!

Dim f As Form

Set f = Application.CreateForm()

' ...

DoCmd.Save , "AAAAAAA"
Docmd.Close acForm, f.Name

Set f = Nothing
 
Back
Top