referencing subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a subform within a subform within a subform (yes thats right 3 levels
deep)
From my first form I wish to reference the subform at third level down.
So for arguement sake we will call the first form "Form1" the second form
"SubForm2" and the third form "Subform3"

From Form1 I want to reference SubForm3 so how would I do this?
 
Lorenzo said:
I have a subform within a subform within a subform (yes thats right 3 levels
deep)
From my first form I wish to reference the subform at third level down.
So for arguement sake we will call the first form "Form1" the second form
"SubForm2" and the third form "Subform3"

From Form1 I want to reference SubForm3 so how would I do this?


It depends on what level the reference is in, but in
general, use this sort of logic:

In the main form:
Me.subform1.Form.subform2.Form.subform3.Form.textbox

In the subform1:
Me.subform2.Form.subform3.Form.textbox

and so on.

Note that subformN is the name of the subform **control** on
its container form. The subform control name may be
different from the name of the form displayed in the subform
control.
 
Back
Top