If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Or:
You could use the Documenter to create a report that included the SQL code for all your queries/reports, export the Documenter report to Word and then do a "Find" on the desired table names within Word. -- George Nicholson Remove 'Junk' from return address. "OldTymer" wrote in message ... Is there a way to find out which queries refer to a given table? I have to modify how tables X, Y and Z are used throughout this app. I can use FIND in the VB Editor to search all Forms and Modules in the whole project for a table name -- but what about searching in queries? Or reports? Bonus question: is there an easy way to find the 'dead wood' in a project? I man things like unused queries, reports, tables, forms, etc. I can see that quite a few people have carelessly hacked on this project over the years, which makes it harder to "just fix" what I'm working on. Thanks muchly. |
#12
|
|||
|
|||
"George Nicholson" wrote:
Or: You could use the Documenter to create a report that included the SQL code for all your queries/reports, export the Documenter report to Word and then do a "Find" on the desired table names within Word. I liked this idea because I could spend the time once and search multiple times more quickly. Unfortunately it hung Access on a query called "QTest_Crosstab" -- high CPU usage on MSACCESS.EXE for 10+ minutes on this 2.4GHz P4 with WinXP. |
#13
|
|||
|
|||
"OldTymer" wrote:
Unfortunately it hung Access... And upon using the MS automated problem reporting, it notified me that this machine needs Office SP3. Only a 48 minute download. Sigh. |
#14
|
|||
|
|||
"Ken Snell [MVP]" wrote:
Put this subroutine in a regular module, and then run it from the Immediate Window (provide the table name as a text string as the argument). It'll return a list of all queries that use that table. : Very slick! Worked like a charm. Thank you, Ken! |
#15
|
|||
|
|||
Thank Dan! This worked as well as Ken's previous post, in fact this version
creates identical output with the option of uncommenting the SQL: Public Sub SearchInAllQueries(strKeyWord As String) Dim qryDef As DAO.QueryDef For Each qryDef In CurrentDb.QueryDefs If InStr(1, qryDef.SQL, strKeyWord, vbTextCompare) And InStr(1, qryDef.name, "~", vbTextCompare) = 0 Then Debug.Print qryDef.name ' Debug.Print qryDef.SQL End If Next End Sub |
#16
|
|||
|
|||
"gls858" wrote:
You don't mention what version of Access you are using but in 2003 You ca n go to View Object Dependencies and a window will open showing your tables, queries and reports. 2002. :-( Thanks, tho. |
#17
|
|||
|
|||
"John Vinson" wrote:
Freewa http://www3.bc.sympatico.ca/starthere/findandreplace Slow, but it seemed to do the trick! Plus free and easy to install and use. Find and Replace: http://www.rickworld.com 30 day full eval, then $37 Speed Ferret: http://www.moshannon.com $199 (very cute logo and site), semifunctional until registered Total Access Analyzer: http://www.fmsinc.com $299, demo version views only their demo project |
#18
|
|||
|
|||
On Tue, 15 Mar 2005 13:23:06 -0800, "OldTymer"
wrote: "John Vinson" wrote: Freewa http://www3.bc.sympatico.ca/starthere/findandreplace Slow, but it seemed to do the trick! Plus free and easy to install and use. Find and Replace: http://www.rickworld.com 30 day full eval, then $37 Speed Ferret: http://www.moshannon.com $199 (very cute logo and site), semifunctional until registered Total Access Analyzer: http://www.fmsinc.com $299, demo version views only their demo project I use (and like) both Speed Ferret and Total Access Analyzer. For heavy-duty development they're both worth the investment IMHO - and though they overlap some in functionality, they're enough different that I do use both of them. John W. Vinson[MVP] |
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 04:11 AM |
Get data from combo box to popluate the next box | Lin Light | Using Forms | 4 | December 30th, 2004 05:01 PM |
Manual line break spaces on TOC or Table of tables | Eric | Page Layout | 9 | October 29th, 2004 04:42 PM |
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. | HDW | Database Design | 3 | October 16th, 2004 03:42 AM |
Semicolon delimited text query help | Al Guerra | Running & Setting Up Queries | 3 | August 12th, 2004 11:50 AM |