reference problem

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

Guest

Hi,
I've got form X and TabControl T on it. On TabControl T I've got
page P. On the page P I've got textBox B. How do I reference that
textBox B? Forms!X... ??
Thanx

alekm
 
To expand just a bit on Duane's answer, pretend (for the purposes of
referencing) that the tab control does not exist and the textbox is directly
on the form.
 
I've just realized that I skipped the main part:
I've got subform S on page P and text Box B is on the S
How can I reference B?
 
OK, here's where it gets tricky. You say the subform is named S. What is
the subform CONTROL (that is, the control on the form that holds the
subform) named? There's a difference. It could have the same name as the
subform, but it could be different.

Given a subform control named Scontrol, it would be:

Forms!X!Scontrol.Form!B

Scontrol.Form says "OK, now look at the form contained in the Scontrol
control.
 
Back
Top