E
eagleofjade
I need to get a list of the recordsources of all the reports in an ADP
database application. In a regular Access database, I could use the
following code to derive the recordsources from reports in a database,
but it does not work with an ADP.
Dim db As Database, doc As Document, con As Container
Set db = DBEngine.Workspaces(0).Databases(0)
Set con = db.Containers("Reports")
Application.Echo False
For i = 0 To con.Documents.Count - 1
Set doc = con.Documents(i)
Debug.Print "Report Name: " & doc.Name
DoCmd.OpenReport doc.Name, A_DESIGN
Debug.Print "RecordSource: " &
Reports(doc.Name).Recordsource
Debug.Print
DoCmd.Close A_REPORT, doc.Name
Next i
Application.Echo True
Does anyone know how to go about doing this same task with an ADP
application? Also, if there are any utilities out there that would let
me interrogate an ADP application I'd love to know of them. I have
used Object Dependency Browser from AADconsulting in the past, but it
doesn't seem to work with ADP. I also downloaded a trial version of
Total Access Detective but it too, does not seem to work with ADP
applications.
Any help would be appreciated.
Craig
database application. In a regular Access database, I could use the
following code to derive the recordsources from reports in a database,
but it does not work with an ADP.
Dim db As Database, doc As Document, con As Container
Set db = DBEngine.Workspaces(0).Databases(0)
Set con = db.Containers("Reports")
Application.Echo False
For i = 0 To con.Documents.Count - 1
Set doc = con.Documents(i)
Debug.Print "Report Name: " & doc.Name
DoCmd.OpenReport doc.Name, A_DESIGN
Debug.Print "RecordSource: " &
Reports(doc.Name).Recordsource
Debug.Print
DoCmd.Close A_REPORT, doc.Name
Next i
Application.Echo True
Does anyone know how to go about doing this same task with an ADP
application? Also, if there are any utilities out there that would let
me interrogate an ADP application I'd love to know of them. I have
used Object Dependency Browser from AADconsulting in the past, but it
doesn't seem to work with ADP. I also downloaded a trial version of
Total Access Detective but it too, does not seem to work with ADP
applications.
Any help would be appreciated.
Craig