Query Map (1 Viewer)

Matt Greatorex

Registered User.
Local time
Today, 12:43
Joined
Jun 22, 2005
Messages
1,019
Is there an automatic way, within Access, to see all of the relationships between various queries?

I've inherited a db with no documentation and many interrelated queries.

I'm about to start 'mapping' it by hand, but was hoping to make my life easier.
 

namliam

The Mailman - AWF VIP
Local time
Today, 18:43
Joined
Aug 11, 2003
Messages
11,695
While in the database window, in the main menu:

Tools => Relationships

IF that has been used...
 

Matt Greatorex

Registered User.
Local time
Today, 12:43
Joined
Jun 22, 2005
Messages
1,019
Thanks for the response.
If only it were that simple. Unfortunately, no relationships have been declared in this way.
 

KeithG

AWF VIP
Local time
Today, 09:43
Joined
Mar 23, 2006
Messages
2,592
Try the below SQL. It will give the query name and all relationships in the query.

SELECT DISTINCTROW MSysObjects.Name, MSysQueries.Expression AS Relationship
FROM MSysObjects INNER JOIN MSysQueries ON MSysObjects.Id = MSysQueries.ObjectId
WHERE (((MSysQueries.Attribute)=7));
 

Matt Greatorex

Registered User.
Local time
Today, 12:43
Joined
Jun 22, 2005
Messages
1,019
I think that's exactly what I'm looking for.:D

Thanks a bunch - you've saved me a lot of query-by-query manual checking.
 

Users who are viewing this thread

Top Bottom