473,395 Members | 1,456 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,395 software developers and data experts.

listing queries which use a particular table

Is there any way to generate a list of access queries in an access
database which utilize a specific table? Thanks for all help in
advance.

Dave C.

Apr 5 '07 #1
3 1743
Access 2003 and 2007 do have dependency info. But if the database has
invalid links, you may find that this crashes Access before it can tell you
anything useful.

This utility may help:
Renaming fields and tracing dependencies
at:
http://allenbrowne.com/ser-41.html

Beyond that, there are commercial utilities such as:
http://www.speedferret.com/

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

"hedgracer" <d.*********@sbcglobal.netwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
Is there any way to generate a list of access queries in an access
database which utilize a specific table? Thanks for all help in
advance.

Dave C.
Apr 5 '07 #2
On 5 Apr 2007 08:18:20 -0700, hedgracer wrote:
Is there any way to generate a list of access queries in an access
database which utilize a specific table? Thanks for all help in
advance.

Dave C.


Does this help?
This shows only named queries.

Public Sub QyerySQL()

' Find the queries that use a specific taqble.
Dim qdf As QueryDef
Dim prp As Property
Dim strTableName As String
strTableName = InputBox("What table?")
Dim Db As DAO.Database
Set Db = CurrentDb
For Each qdf In Db.QueryDefs
If Left(qdf.Name, 4) = "~sq_" Then
Else
For Each prp In qdf.Properties
If prp.Name = "SQL" Then
If prp Like "*" & strTableName & "*" Then
Debug.Print qdf.Name & " " & prp.Value
End If
End If
Next prp
End If
Next
Set Db = Nothing

End Sub

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Apr 5 '07 #3
I have a DB that lists where tables are used for (queries, forms and
reports, where queries are used, where subforms are used etc. Any use?
Phil

"hedgracer" <d.*********@sbcglobal.netwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
Is there any way to generate a list of access queries in an access
database which utilize a specific table? Thanks for all help in
advance.

Dave C.

Apr 5 '07 #4

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

Similar topics

3
by: Metal Dave | last post by:
Hi all, Currently our product has a setup that stores information about transactions in a transaction table. Additionally, certain transactions pertain to specific people, and extra information...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
0
by: MHenry | last post by:
Hi, I know virtually nothing about creating Macros in Access. I would appreciate some help in creating a Macro or Macros that automatically run(s) 14 Queries (three Make Table Queries, and 11...
4
by: jbesr1230 | last post by:
Hello, How would I print out a listing of the queries that are in a database? I would like to have a spreadsheet style listing with the columns of: Query Name, Description, Modified Date, Created...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.