Search Modules

E

ERICH

Is there a way to perform a mass search on the modules?
You can create queries to scan all MS Access queries for a
given text. I think it scans the MS OBjects tables. Is
ther a way to do this to scan all modules and view the
results in record set format?
 
M

Marshall Barton

ERICH said:
Is there a way to perform a mass search on the modules?
You can create queries to scan all MS Access queries for a
given text. I think it scans the MS OBjects tables. Is
ther a way to do this to scan all modules and view the
results in record set format?


The VBA development window allows several options on the
Edit - Find feature to search only a single procedure the
current module or all modules. It will not make a list of
the matches (in a recordset or otherwise).

You can write a procedure that opens each module in the
Containers("Modules").Documents collection and searches the
module's code for a string. See Help on the properties and
methods available for use with a module object.
 

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