I am trying to create a form through VBA. I have got the create form metod to work but when I try to edit any of the form's properities I get an error stating that the form is not available.
When I click help nothing comes up.
Code:
Sub TestNewForm()
Dim fm As Form
Set fm = CreateForm(, "Template")
fm.Properties("Recordset") = "Customers" 'Stops here with a Run Time Error 2455, Object no longer available.
fm.Properties("Name") = "frmCustomers" 'Stops here with a Run-time error 2135, Property is read only.
End Sub
When I click help nothing comes up.