I need to scan a couple of hundred databases in several directories to
locate all code that uses a particular function, but cannot figure out
how to read the Form or Module text itself.
I am able to locate, then connect to the databases, and have figured
out how to get the Form and Module names easy enough using the
documents collection of each of the Form and Module containers, but
how do I actually read the code to find out which contain the function
code I am searching?
Is there any more direct way to read it rather than using
Application.SaveAsText?
----------------------------
set db = OpenDatabase([Database path and name])
for i = 0 to db.Containers("Modules").Documents.Count
oDoc = db.Containers("Modules").Documents(i)
sName = oDoc.Name '- Wonks so far ...
sText = oDoc.???? How do I read the actual text (code) in each
module or form?
---------------------------
Thanks in Advance - jfro