R
Ray
I would like to be able to store a form name in a field in a "Config"
table - then when the application initializes, it gets the name of the
form, sets a public variable declared as a Form type, and use this
form object throughout the code.
What I haven't latched onto yet is how to take the entry from the
database and use it to create the form variable...
for instance...
Dim objMainForm as Form
Dim sFormName as String
... Read Database Info and retrieve form name
sFormName = rs![Name of Form To use]
Here's where I believe I'm missing it... After retrieving the name of
the form as a string...how do you use it to set the objMainForm
variable? Even if I retrieve it as a Variant - would that help?
How do I transfer the value of sFormName to Forms!Form! ???
Suggestions and instructions are appreciated..
A slapping of the hands for stupidity is also accepted.
Thanks
Ray
table - then when the application initializes, it gets the name of the
form, sets a public variable declared as a Form type, and use this
form object throughout the code.
What I haven't latched onto yet is how to take the entry from the
database and use it to create the form variable...
for instance...
Dim objMainForm as Form
Dim sFormName as String
... Read Database Info and retrieve form name
sFormName = rs![Name of Form To use]
Here's where I believe I'm missing it... After retrieving the name of
the form as a string...how do you use it to set the objMainForm
variable? Even if I retrieve it as a Variant - would that help?
How do I transfer the value of sFormName to Forms!Form! ???
Suggestions and instructions are appreciated..
A slapping of the hands for stupidity is also accepted.
Thanks
Ray