I am trying to loop through all of my reports on the db using the following code:
Dim obj As AccessObject
dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
Debug.Print obj.Name
Next obj
What I want to do is that with each report found I need to be able to loop through the controls on the report.
I know you can use the controls collection to loop though them but not sure how to implement this.
Any help wid this appreciated.
Cheers,
N
Dim obj As AccessObject
dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
Debug.Print obj.Name
Next obj
What I want to do is that with each report found I need to be able to loop through the controls on the report.
I know you can use the controls collection to loop though them but not sure how to implement this.
Any help wid this appreciated.
Cheers,
N