simple question yet I cannot find an example anywhere that works for me..
I want to refer to the following nested subform with a variable:
Forms!frmMain!frmMainSub1.Form!MainSub2.Form
(Sub2 lives inside Sub1, which lives inside Main)
my first thought was:
Dim strMainSub2 As String
strMainSub2 = "Forms!frmMain!frmMainSub1.Form!MainSub2.Form"
then I could use strMainSub2!MyControl = SomeParameter rather than the full long name.
Obviously this is not working for me. Could someone please tell me the correct syntax? Thanks so much.
I want to refer to the following nested subform with a variable:
Forms!frmMain!frmMainSub1.Form!MainSub2.Form
(Sub2 lives inside Sub1, which lives inside Main)
my first thought was:
Dim strMainSub2 As String
strMainSub2 = "Forms!frmMain!frmMainSub1.Form!MainSub2.Form"
then I could use strMainSub2!MyControl = SomeParameter rather than the full long name.
Obviously this is not working for me. Could someone please tell me the correct syntax? Thanks so much.