Subform in a page

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

Guest

I need to reference a control in a subform on a page(tab) in a form. I can't
find the right way to identify the page or is it even necessary
 
The fact that the control's on a tab doesn't matter: its name has to be
unique to the form, so you simply refer to it by name.
 
I need to reference a control in a subform on a page(tab) in a form. I can't
find the right way to identify the page or is it even necessary

It's not: the syntax uses the Name property of the Subform control,
and of the control on the subform; the tab page or tab control are not
used. Just

Me!subformname.Form!controlname

whether the Subform is on a tab page or not.

Note that subformname is the Name property *of the Subform control*,
the box containing the form - not the name of the form within that
box. The names might be the same but they might not!

John W. Vinson[MVP]
 
Back
Top