Referring to control on subform

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

Guest

I have a mainform with two subforms ( the subforms are not nested on the
mainform. I am trying to refer to a control that is on subform 2 from
subform1. What would be the correct syntax?
Thanks,
 
Couple of ways to do it:

Me.Parent.Subform2Name!ControlnameOnSubform2

or

Forms!NameOfMainForm!Subform2Name!ControlnameOnSubform2

Note that Subform2Name needs to be replaced with the actual name of the
subform control (the control that holds the subform, which may or may not be
the same name as its Source Object).
 
Back
Top