473,394 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Query where used diagram

I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
..
..
..

Suggestions?

Bob
Nov 13 '05 #1
5 3865
On Fri, 12 Aug 2005 15:23:45 -0500, Bob Alston
<tu****************@cox.net> wrote:

I did this once. You have to write a recursive function that looks at
the sql statement for each query, figures out where the FROM clause
is, and recursively looks at the elements of that clause to dig deeper
to the next layer.

-Tom.
I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
.
.
.

Suggestions?

Bob


Nov 13 '05 #2
Tom van Stiphout wrote:
On Fri, 12 Aug 2005 15:23:45 -0500, Bob Alston
<tu****************@cox.net> wrote:

I did this once. You have to write a recursive function that looks at
the sql statement for each query, figures out where the FROM clause
is, and recursively looks at the elements of that clause to dig deeper
to the next layer.

-Tom.

I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
.
.
.

Suggestions?

Bob


Thanks. I have such a function that shows a single level where used for
any table or query. Want I need is a way to transform that into a
diagram that will show the 3 or four levels of table --> query -->
query..... to Report or Form.

Bob
Nov 13 '05 #3
On Fri, 12 Aug 2005 15:23:45 -0500, Bob Alston <tu****************@cox.net>
wrote:
I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
.
.
.

Suggestions?

Bob


The most obvious thought that comes to mind is to use a treeview control. The
other option would be to write the data to a table in which each record has a
parent and child query name, then make the table its own sub-datasheet. That
allows you to open the table, and drill down as desired.
Nov 13 '05 #4
On Fri, 12 Aug 2005 22:13:57 -0500, Bob Alston
<tu****************@cox.net> wrote:

How about if you wrote the results to a table:
Level Query
0 Rpt_Daily_Summary
1 qry_Daily_Summary_Data
2 qry_Daily_Data_combined
2 qry_Weekly_Data_Combined
etc.
Then you could create a report with a wide textbox, and prefix the
Query value by Level times a few spaces:
select Space$(Level*4) & Query from MyTable

-Tom.

Tom van Stiphout wrote:
On Fri, 12 Aug 2005 15:23:45 -0500, Bob Alston
<tu****************@cox.net> wrote:

I did this once. You have to write a recursive function that looks at
the sql statement for each query, figures out where the FROM clause
is, and recursively looks at the elements of that clause to dig deeper
to the next layer.

-Tom.

I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
.
.
.

Suggestions?

Bob


Thanks. I have such a function that shows a single level where used for
any table or query. Want I need is a way to transform that into a
diagram that will show the 3 or four levels of table --> query -->
query..... to Report or Form.

Bob


Nov 13 '05 #5
Tom van Stiphout wrote:
On Fri, 12 Aug 2005 22:13:57 -0500, Bob Alston
<tu****************@cox.net> wrote:

How about if you wrote the results to a table:
Level Query
0 Rpt_Daily_Summary
1 qry_Daily_Summary_Data
2 qry_Daily_Data_combined
2 qry_Weekly_Data_Combined
etc.
Then you could create a report with a wide textbox, and prefix the
Query value by Level times a few spaces:
select Space$(Level*4) & Query from MyTable

-Tom.
Tom van Stiphout wrote:
On Fri, 12 Aug 2005 15:23:45 -0500, Bob Alston
<tu****************@cox.net> wrote:

I did this once. You have to write a recursive function that looks at
the sql statement for each query, figures out where the FROM clause
is, and recursively looks at the elements of that clause to dig deeper
to the next layer.

-Tom.

I have a where used utility that shows where any table or query is used
- in a query, form or table.

I would like some kind of diagram that shows these relations. I have
some reports that require a lot of queries with query_totals and union
queries to produce current day, current week, current month, current
year to date and prior day, week month and year data.. these are
Unioned together with appropriate keys to serve as input to a single report.

I would like to produce a diagram that starts at the report, and shows
an indented structure of the queries used to create the query.

something like:

Rpt_Daily_Summary

qry_Daily_Summary_Data

qry_Daily_Data_combined

query_daily_ data

query_Daily_data_Prioryear

qry_Weekly_Data_Combined

query_Weekly_ data

query_Weekly_data_Prioryear

qry_Monthly_Data_Combined
.
.
.

Suggestions?

Bob

Thanks. I have such a function that shows a single level where used for
any table or query. Want I need is a way to transform that into a
diagram that will show the 3 or four levels of table --> query -->
query..... to Report or Form.

Bob


Thanks. I was starting to develop something like that in my head.
However it is the overall process that seems daunting to me. I would
need to take the where used table and then recursively process each
object to identify its predecesser objects. I much prefer to develop a
business system than a utility like this.

Thanks for the help.

Anyone ever done this before?? Surely I am not alone in wanting this
(and not wanting to spend $299 to get the commercial solution).

Bob
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: signaturefactory | last post by:
I am trying the following query in and oleDbCommand: SELECT PartLocations.LocationName, Sum(PartsJournal.Quantity) AS SumOfQuantity, PartsJournal.PartsLotNumber FROM PartLocations INNER JOIN...
7
by: jane | last post by:
HI, I was ask to do a query to get the member active condition I had table to show the member number and active status in three month. ACC A1 A2 A3 ---- -----------...
1
by: marane moll | last post by:
Hello My Access Diagram wizard is buggy and reinstallation of Access (2000) doesn't help. I guess it is buggy because of a not registered ActiveX Control. But I don't know which Control the...
1
by: Maria | last post by:
Heya, I am doing some background reading about the database and i am a little bit confused, i would appreciated any help.... Assume been asked to draw the ER diagram for the following...
1
by: James | last post by:
Access 2003, trying to count the number of records that meet a criteria. According to Help: "In the Database window, click Queries under Objects, and then click New on the database window...
2
by: Fendi Baba | last post by:
I created a person table with various fields such as Suffix, Salutation, etc, Some of these fields may not be mandatory for example suffix. In the actual table itself, I only have a field for...
70
by: Anson.Stuggart | last post by:
I'm designing a debounce filter using Finite State Machine. The FSM behavior is it follows the inital input bit and thinks that's real output until it receives 3 consecutive same bits and it...
13
by: Doug | last post by:
Hi all, A workmate was recently bitching to me about an RFC. (Apologies - the RFC number eludes me at present (it's related to the DIAMETER protocol, that's all I can remember) but I will try...
0
by: viepia | last post by:
Hi, My project writes records to a new SQL Server 2005 database with currently 18 tables. When I change the Database Diagram for my database I save the copy the list of changed tables to a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.