Application.CreateForm (Access)
The CreateForm method creates a form and returns a Form object.
You can use the CreateForm method when designing a wizard that creates a new form. The CreateForm method opens a new, minimized form in form Design view. If the name that you use for the FormTemplate argument isn't valid, Visual Basic uses the form template specified by the Form Template setting on the Forms/Reports tab of the Options dialog box.
CreateForm (Database, FormTemplate)
Sub NewForm()
Dim frm As Form
' Create form based on Customers form.
Set frm = CreateForm("Customers")
DoCmd.Restore
' Set RecordSource property to Customers table.
frm.RecordSource = "Customers"
End Sub
Arguments
Optional arguments
The following arguments are optional
Database (Database) - The name of the database that contains the form template that you want to use to create a form. If you want the current database, omit this argument. If you want to use an open library database, specify the library database with this argument.
FormTemplate (String) - The name of the form that you want to use as a template to create a new form.