Refer to a tab control

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

Guest

what is the syntax to refer to a text box located on a page of a tab control
on a form??

I used: forms!MyForm!MyTabcntl!MyPage!MyTextbox and other variations.

But that does not seem to work. I can't seem to find the information in
access help - I am using Access 2002
 
Forms!MyForm!TextBoxName

Controls on a tab control can be referenced via the main form's Controls
collection.
 
what is the syntax to refer to a text box located on a page of a tab control
on a form??

I used: forms!MyForm!MyTabcntl!MyPage!MyTextbox and other variations.

But that does not seem to work. I can't seem to find the information in
access help - I am using Access 2002

The name of the tab control is irrelevant and is not used in
referencing a control; a tab control is simply a way to conserve
screen real estate. Forms!MyForm!MyTextbox will work, whether the
textbox is on a tab page or not.

John W. Vinson[MVP]
 
Back
Top