I have a main form in which almost all of my subforms are 'nested' in. In almost all of my Modules, I am having to re-declare the following in each and every procedure:
Dim frm As Form_frmOneWindow
Set frm = Forms("frmOneWindow")
I have tried experimenting making this a Constant but the Set frm... never seems to comply. Is there anyway I can declare this at the top of the Module (underneath Option Compare Database and Option Explicit statements) and make it Public for the entire Module? Otherwise, I find that I am declaring and emptying within each procedure. What a waste...there must be a better way.
Thanks in advance
Pat
Dim frm As Form_frmOneWindow
Set frm = Forms("frmOneWindow")
I have tried experimenting making this a Constant but the Set frm... never seems to comply. Is there anyway I can declare this at the top of the Module (underneath Option Compare Database and Option Explicit statements) and make it Public for the entire Module? Otherwise, I find that I am declaring and emptying within each procedure. What a waste...there must be a better way.
Thanks in advance
Pat