It seems so simple, but I can't seem to find the correct syntax. I am looking to create a form variable for an unopened form in my Access 2013 application so I can pass the form object to a series of methods rather than passing separate properties of the form.
Here's what I've been attempting, but I run into Run-time error '2465' "Microsoft Access can't find the field 'frmSuppliers' referenced in your expression.
Private Sub cmdSuppliers_Click()
Dim frm As Form
Set frm = Form("frmSuppliers")
Debug.Print frm.Name