Referring to a control on a Tabbed Frm

  • Thread starter Anthony Viscomi
  • Start date
A

Anthony Viscomi

I'm sure this question has been asked before; but I couldn't find any recent
posts.

I have a tabbed form and I want to refer to a value contained within another
field that resides on another tab; the current frm that is doing the
referring is acutally a sub-form.

Simply put; what is the sytax need to acheive this?
Thanks in advance!
Anthony
 
D

Douglas J. Steele

The presence of the tab control doesn't change anything. Even though the
controls are on separate tabs, their names still have to be unique, so you
simply refer to them by name.

From the subform, use Me.Parent.NameOfControl
 
G

George Nicholson

No special syntax is required. Address controls on a tab control as if they
were "on" the same main form as the Tab control, because they are. The tab
is just a display convenience.

(just try giving a control on page 2 of a tab the same name as a control on
page one or the main form. You won't be allowed to. Since they are all "on"
the same form, the names must be unique.)


HTH,
 
A

Anthony Viscomi

Thanks to all!
George Nicholson said:
No special syntax is required. Address controls on a tab control as if
they were "on" the same main form as the Tab control, because they are.
The tab is just a display convenience.

(just try giving a control on page 2 of a tab the same name as a control
on page one or the main form. You won't be allowed to. Since they are all
"on" the same form, the names must be unique.)


HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top