Question using "Set frm = New Form_myForm"
Posted on 2009-07-03
I have created a new pop-up form that I want to be able to create multiple instances of. To do this I am using:
Dim frm as Form
Set frm = New Form_myForm
My question is, I want to be able to somehow pass the form name to be opened to this via an argument in a function, like so:
fOpenForm(myFormName), and then have it activate like this:
Set frm = New Form_ & myFormName
although I know this doesn't work. Any ideas how I can pass different form names to "New Form_...")?