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 / Modules / DAO / VBA / October 2005

Tip: Looking for answers? Try searching our database.

Add Tables to RelationShip-Windows with VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gernot Pfeifer - 30 Oct 2005 18:41 GMT
Hello world (;>)...

I am searching for a code fragment to add Tables to the relationship Windows
with the help of VBA.

I know how to add realations with VBA, I know the way to show them in the
relationship windows.

But:
The user has to add the tables manually  to the window to show the
releations.

Is there a resolution to do this with VBA ??

Many thanks and greetings from Germany.

Gernot
Allen Browne - 31 Oct 2005 04:13 GMT
The layout of the relationship window is stored in one of the system tables.

Best lead I can give you is this link:
   http://www.lebans.com/saverelationshipview.htm
Stephen Lebans has the code there that lets you save and restore multiple
views of the relationship window. By looking at his code, you might be able
to figure out whether you can write to the appropriate system table, and
what values you need to store in which fields.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Hello world (;>)...
>
[quoted text clipped - 13 lines]
>
> Gernot
Tim Ferguson - 31 Oct 2005 13:04 GMT
"Gernot Pfeifer" <gernotpf@gmx.de> wrote in news:uPLuZmX3FHA.1476
@TK2MSFTNGP10.phx.gbl:

> The user has to add the tables manually  to the window to show the
> releations.

The very thought of users looking at the Relationships is enough to make me
run for the gin...

Tim F
 
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.