This works:
Dim myForm as Form
Set myForm = frmForm1
This doesn't work:
Dim tempForm As String
tempForm = "frmForm1"
Set myForm = tempForm
I want to read the form name from a database and then assign it to myForm. How to convert from a string to an object type?
Thanks.
Dim myForm as Form
Set myForm = frmForm1
This doesn't work:
Dim tempForm As String
tempForm = "frmForm1"
Set myForm = tempForm
I want to read the form name from a database and then assign it to myForm. How to convert from a string to an object type?
Thanks.