Code to create new form instance of a closed form using form name
I want to replace the long Select Case list with a variable.
Full code of modu
Here's an ugly hack I found:
DoCmd.SelectObject , , True
DoCmd.RunCommand acCmdNewObjectForm
The RunCommand step doesn't give you programmatic control of the object, you'll have to Dim a Form variable and Set using Forms.Item(). I usually close the form after DoCmd.RunCommand, then DoCmd.Rename with something useful (my users don't like Form1, Form2, etc.).
Hope that helps.