Results 1 to 3 of 3
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    Looking for comprehensive Object Dependency utility

    In Access 2013, one can obtain Object Dependencies via Database Tools for queries, forms, tables, reports, etc. but not used in general modules. Further, one has to examine each object dependency one at a time. Hopefully, I've characterized the use of the Database Tool correctly.



    What I'm in need of is a utility that will give me a report of "where used" (dependency) for each query and table in my DB including use in general modules. I found Allen has something for where fields are used but not a comprehensive report on where queries are used.

    For example, as one would expect, query references show up as RecordSource and RowSource within forms, reports, combo's, etc quite regularly and the Object dependency built-in in Access easily finds them. However, many of my general modules, form modules and report modules make use of queries in DAO Recordsets, so those references need to be revealed as well.

    Any ideas?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Are all of your query names explicitly written out in your code?

    You can try to write all your code to external files (https://www.tek-tips.com/viewthread.cfm?qid=1386464)

    then parse each of the files looking for names your database would recognize. I'm not sure this would be terribly efficient though because you'd have to have some way of recognizing where a name is occurring

    i.e. set rst = currentdb.openrecordset("qryTEST")

    you'd recognize this by testing the line of code for 'set rst = current'

    you'd also have to test for things like dcount, dsum, dlookup if you're using them, in other words have a 'trigger' list just to see if you need to extract a name.

    you may also try this:

    http://www.utteraccess.com/forum/Rea...-t2021888.html

    but this code is only cycling through modules, not code relating to forms etc.

  3. #3
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    MZTools https://www.mztools.com/v8/download_trial.aspx has a number of useful tools and I believe VTools http://www.skrol29.com/us/vtools.php has a deep search facility, both might help.

    I've used MZ Tools for years !
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

Please reply to this thread with any new information or opinions.

Similar Threads

  1. remove object dependency
    By Jen0dorf in forum Access
    Replies: 1
    Last Post: 11-03-2015, 08:33 AM
  2. Object Dependency for Expressions in Query?
    By accessnewbie352 in forum Queries
    Replies: 2
    Last Post: 01-09-2015, 09:03 PM
  3. Replies: 0
    Last Post: 02-20-2012, 04:57 PM
  4. Comprehensive Attendance Project
    By amangupts in forum Programming
    Replies: 6
    Last Post: 07-24-2011, 12:52 PM
  5. Replies: 2
    Last Post: 02-18-2011, 02:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums