PC User
Registered User.
- Local time
- Today, 06:36
- Joined
- Jul 28, 2002
- Messages
- 193
I’m trying to globally change some of the properties of all my reports and I can’t get the code to work. Can someone advise me on this. See below. I get an error on the obj. ==>> Compile Error: Invalid Qualifier.
===================================================
Public Function SetReportProperties()
Dim obj As AccessObject
Dim dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
obj.DefaultView = 1
obj.Popup = True
Next obj
End Function
===================================================
Thanks,
PC
===================================================
Public Function SetReportProperties()
Dim obj As AccessObject
Dim dbs As Object
Set dbs = Application.CurrentProject
For Each obj In dbs.AllReports
obj.DefaultView = 1
obj.Popup = True
Next obj
End Function
===================================================
Thanks,
PC