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 Programming / January 2005

Tip: Looking for answers? Try searching our database.

Determine ControlSource table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sfarkas@visa.com - 25 Jan 2005 19:41 GMT
I have an application with a number of forms, some of which have a
recordsource that is a join of multiple tables.  The forms are all
bound forms.  Using VBA, I would like to be able to interate through
the controls on each form and determine: a) the controlsource and b)
the table to which the control is bound.  Obviously getting the
controlsource of a control is simple. But I don't see how to drill down
to get the table name to which the control is bound.
Anybody know?

Thanks for your help.
Paul Overway - 25 Jan 2005 19:59 GMT
Controls aren't bound to a table, they are bound to a field that exists in
the recordsource for your form, which could be either a query or a table.
Aside from parsing the SQL associated with the query used for recordsource,
there is no direct way to obtain the info you seek.

Signature

Paul Overway
Logico Solutions
http://www.logico-solutions.com

>I have an application with a number of forms, some of which have a
> recordsource that is a join of multiple tables.  The forms are all
[quoted text clipped - 6 lines]
>
> Thanks for your help.
 
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.