I have successfully managed to reference a subform using a
variable, using the following syntax:
set frmMain = Forms(varFormName)
set frmSub = frmMain(subctl.name).form
This works if the subform control's name is DIFFERENT from
the sourceobject.
HOWEVER, the code below does not work to reference the
subsubform object.
set frmSubSub = frmSub(subsubctl.name).form
It returns error 2455 "Invalid reference to the
Form/Report property"
Any ideas how to do this?
variable, using the following syntax:
set frmMain = Forms(varFormName)
set frmSub = frmMain(subctl.name).form
This works if the subform control's name is DIFFERENT from
the sourceobject.
HOWEVER, the code below does not work to reference the
subsubform object.
set frmSubSub = frmSub(subsubctl.name).form
It returns error 2455 "Invalid reference to the
Form/Report property"
Any ideas how to do this?