views:

335

answers:

3

I have inherited a MS Access "application" and would like to trace all references to one of the fields.

Is there a way to search for the field (all google hits are for querying the table).

NOTE: I am not looking for any SQL help, I'd like something like the Visual Studio right-click -> find all references type thing.

+1  A: 

See the Scan and replace utilities section at the Microsoft Access third party utilities, products, tools, modules, etc. page at my website.

Find and Replace is my preferred utility and it's quite inexpensive. There's a free limited version that works too. I've been using this tool for more than a decade. The author has also added some of my suggestions.

If you want a complete tool documenting all fields, etc, etc then you want FMS Inc's Total Access Analyzer 2007

Tony Toews
A: 

You can also do this without any external tools. MS Access has an option to show all references. You can do this by reight-clicking a table and choose the corresponding menu option.

However, some people have bad experiences with this option so the best thing to do might be to make a copy of the database and turn on the option there. (or just turn it off after you have the results you need).

birger
You mean object dependencies. Yes, there have been bad experiences with it although it's much improved. However that won't find any field names in VBA code.
Tony Toews
A good survey of problems with Object Dependencies is found at http://allenbrowne.com/bug-03.html. I have used this feature often (in Access 2003) for small tasks, though; "Track Name AutoCorrect" enables the feature, and the problems seem to come from the option that goes beyond that: "Perform Name AutoCorrect." Lately I turn off both because I'm worried about speed. I like the "make a copy" suggestion.
Smandoli
+4  A: 
  1. Go to Tools > Analyze > Documenter
  2. "Select All" items in all categories
  3. Under Options, ensure "code" is checked (should be default)
  4. Run the Documenter report
  5. Export into .rtf or other text format
  6. Search on your field name

This is a good method because it is fast, free, and complete.

  • Objects and VBA are both handled. Some design approaches can create points of interplay that are hard to note.
  • All aliases are exposed. Aliases come in several forms -- two that come to mind are renaming of columns in a query and (this one is deadly) use of the "caption" property of a table field.
Smandoli