There is probably a very simple way to do this, but I haven't discovered it yet. I would like to create a list which shows each report name followed by the report's record source, which I can copy from the Immediate window and paste into Word (same for all the forms in my database). I've got the code to create the list of forms and the list of reports, butthe problem is that the only properties that AllReports and AllForms expose are Application, Count, Item, and Parent. How do I get the record source for each item to appear in the list as well?
Thanks for any help!
Sue
Code:
Sub AllReports()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
Debug.Print obj.Name ' Print name of obj.
Next obj
End Sub
Thanks for any help!
Sue