Tracking tables and queries

RichardMGreen

Well-known Member
Joined
Feb 20, 2006
Messages
2,177
Hi all

I'm fairly certain there's a way to track which tables are used by which queries and which queries lead to others (if you see what I mean) but I can't remember what it is.

Can someone help me out?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Search your Help for Object Dependencies. How you get to it changes depending on the version; it's available in 2003 up.
Note: you may need to turn on a couple of options to make it work; Name Autocorrect is one such option in 2003. BUT... turn it back off once you have done your probing. It's one option that can slow your application down, and possibly cause corruption.

Denis
 
Upvote 0
Thanks for that.
I'm using Access 2003 so I'll look through the help files and see what I can find.

::edit::
I've just checked the Object Dependencies on the View menu but it looks like it only works on the object selected.
Is there a way of doing it for the entire database including all the queries (like a database map)?

::edit 2::
I've just seen a Documenter under the Tools/Analyze menu. Is that what I need (can't run it as it's not installed)?
 
Last edited:
Upvote 0
There is a 'Database Documenter' in one of the tools menus (I am using Access 2010 so cannot remember where is was in 2003).
It may give you what you want.
 
Upvote 0
On a related but slightly different question, I have a few queries that run after an import routine which show me any extras I need to put into master tables.

Is there any way of stopping the queries from showing results if the result is nothing?

At the moment I'm just using DoCmd.Openquery in Access VBA, e.g.
DoCmd.OpenQuery "qry_New_Referral_Source_List", acViewNormal
 
Upvote 0
You could do a DCount to see:
Code:
If DCount("*", "qry_New_Referral_Source_List") > 0 Then
   Docmd.OpenQuery "qry_New_Referral_Source_List"
End If
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top