Need to find unresolved references

G

Gary Roach

I want to get a list of all unresolved references in the code in all modules
of an access database (without having to find a way to execute all code
paths). How do I do this? Thanks.
 
J

James A. Fortune

Gary said:
I want to get a list of all unresolved references in the code in all modules
of an access database (without having to find a way to execute all code
paths). How do I do this? Thanks.

Use Option Explicit in each module, then Compile All Modules?

James A. Fortune
(e-mail address removed)
 
G

Gary Roach

I tried that (using Access from Office 2007) but it failed to recognize that
the access application's object's Filesearch method no longer exists.
 
P

Paul Shapiro

Open the VBA editor. On the Tools menu click the References item. The
References that have been specified for the db will be at the top of the
list with the checkbox checked. See if any of the reference names are
prefixed with the word 'MISSING: '. If the db was developed on a different
machine, or with different software versions, those references are needed
but not found on the current machine.
Paul Shapiro
 
G

Gary Roach

Thanks for the reply. Unfortunately that technique doesn't work because the
application object is part of the access object library. The library that
the program was written for was version 10 (Office XP) and the new version
is version 12 (2007). This reference gets automatically updated to point to
the new version. The new version still has an application object, but it
doesn't have a "Filesearch" method.
 
J

John W. Vinson

Thanks for the reply. Unfortunately that technique doesn't work because the
application object is part of the access object library. The library that
the program was written for was version 10 (Office XP) and the new version
is version 12 (2007). This reference gets automatically updated to point to
the new version. The new version still has an application object, but it
doesn't have a "Filesearch" method.

Well... don't know if there's any way to find *all* invalid references, but
you can surely use the "binoculars" search tool to search the entire project
for the word "Filesearch".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top