14

We've inherited an MS Access db/application (Office 2002) with great names such as NewTable, Subform or Macro1. Unfortunately, when we change these to more meaningful names, the references (in other Queries, Forms or Actions) are not updated.

How can we find out where a specific object is used?

6 Answers 6

16

MsAccess has an OBJECT DEPENDENCIES checker. in Access 2007, for example, you must:

  1. click on object (a table, for example);
  2. click on the DATABASE TOOLS tab;
  3. click on the OBJECT DEPENDENCIES (if asked to update dependencies info, click YES)

this whitepage details the process and recommends additional steps that you might wish to take.

In access 2003 and 2000, the process is slightly different, for the interface changed significantly from 2007 onwards

Object Dependency in Access 2003

2
  • 2
    Thanks so much for this from 2022. I inherited many MS Access tools that have many queries, tables etc. that link to eachother. It's a pain to "reverse engineer"; this tool makes it so much easier.
    – Jay
    Sep 9, 2022 at 20:07
  • Glad to have been of help, Jay
    – tony gil
    Oct 28, 2022 at 13:39
9

You can check the system tables, MSysObjects and MSysQueries for references to tables and queries (you can also check the sql string of querydefs). You can loop through the properties of forms and reports, and their controls, for references to tables, queries and macros. You can search code.

The Name Change auto-correct option is usually deprecated, but it may have a place here.

2
  • 2
    I don't think so, last line, first paragraph "You can search code" :)
    – Fionnuala
    May 25, 2009 at 20:15
  • This is pretty much what I was looking for. Not exactly great documentation (and the mentioned tools probably offer a "nicer" representation of the information), but enough to work with.
    – Thorsten
    May 26, 2009 at 8:09
5

I had found ACCESS Dependency Checker as free Microsoft Access Add-In that that reveals the dependencies between database objects like tables, queries, macros etc. I had installed and it's satisfactory for my needs. Try it.

2

If you have Access 2003 installed somewhere: there is an option to list all dependencies. Just right-click an object and choose Object Dependencies (I'm not sure about the translation, I have a Dutch version here).

This will show you dependencies in both directions.

After opening the database in Access 2003 you can still use it in Access 2002. If you are unsure, you can always create a backup copy.

2
  • I know of no one who uses Access on regular basis who leaves Name Autocorrect turned on, because it causes performance problems and corruption. May 25, 2009 at 19:37
  • 1
    True, but it is also easy to turn it off again. And then it is one of the easiest methods to get to the desired result.
    – Birger
    May 25, 2009 at 20:20
2

A shareware tool that can help you with much of this is Rick Fisher's Find and Replace. It has a 30-day trial and costs $30 to register.

Another more full-featured tool is Black Moshannon's Speed Ferret. It's a really excellent product, though relatively expensive ($170). It's also rather problematic in that they never released a native version for Access 2003 or 2007. But you're in luck in that regard as you're dealing with 2002.

If you really want to do this quickly, Speed Ferret is definitely worth the money. Consider your hourly rate and any significant project will pay for itself the first time you use it.

Rick Fisher's tool is less professional and less full-featured, but may be sufficient for your needs. I've only tested it, never used it in a full-fledged project.

2

There is this small add-in, free and usefull vtools, that, among other possibilities, specifically allows you to search for values in all access objects (tables, queries, code, forms, ...).

1
  • Vtools is great.
    – Murrah
    Oct 14, 2021 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.