Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate report showing tables and fields used in queries

Status
Not open for further replies.

cowboy1015

Programmer
Dec 7, 2004
1
US
Hi,

My source data comes from Oracle. I got a query that creates a new table and populate it with the data from Oracle.

I just want to generate a report to map the fields and tables from the queries to the Oracle source fields and tables.

for example:
query1
------
access.field1 -> oracle.field1
access.field2 -> oracle.field2

This queries that I found here comes close. But im not a access developer so im having a hard time:

SELECT DISTINCTROW MSysObjects.Name, MSysQueries.Name1
FROM MSysObjects LEFT JOIN MSysQueries ON MSysObjects.Id = MSysQueries.ObjectId
GROUP BY MSysObjects.Name, MSysQueries.Name1, MSysObjects.Type
HAVING ((Left$([Name],1)<>"~") AND (Not (MSysQueries.Name1) Is Null) AND ((MSysObjects.Type)=5))
ORDER BY MSysObjects.Name, MSysQueries.Name1;

Any help is well appreciated.
Thanks.
 
Close? Cigar? Where are the ashes? (e.g. What is amiss with the results?)





MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top