title: How to open a form passed by parameter to a class module in VBA?
body: <p>I created a class with a private variable of form type <code>Private WithEvents frmFormulary As Form</code> which receives a form object via property set <code>Public Property Set Formulary(frmForm As Form)</code> previously created in Access. When I instantiate an object of this class, I pass this form, which was already created in Access and is actually closed, to this object and save this form in the class' private variable, with the aim of loading this form without using <code>DoCmd.OpenForm "formName"</code>. Trying to make it possible, I created a Sub inside the class <code>Public Sub ShowForm()</code> with the instruction <code>frmFormulary.Visible = True</code>, unsuccessfully. The application simply stops when I run this method. How can I load this form without having to use <code>DoCmd.OpenForm "formName"</code> but, the form object itself passed by parameter?</p>