Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Referring to a control on a Tabbed Frm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anthony Viscomi - 02 Mar 2007 16:13 GMT
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
Douglas J. Steele - 02 Mar 2007 16:20 GMT
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

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I'm sure this question has been asked before; but I couldn't find any
> recent posts.
[quoted text clipped - 6 lines]
> Thanks in advance!
> Anthony
George Nicholson - 02 Mar 2007 16:22 GMT
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,

> I'm sure this question has been asked before; but I couldn't find any
> recent posts.
[quoted text clipped - 6 lines]
> Thanks in advance!
> Anthony
Anthony Viscomi - 02 Mar 2007 16:36 GMT
Thanks to all!
> 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.
[quoted text clipped - 16 lines]
>> Thanks in advance!
>> Anthony
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.