ironfelix717
Registered User.
- Local time
- Today, 04:07
- Joined
- Sep 20, 2019
- Messages
- 193
Greetings,
I am attempting to access vba defined report properties for a specific report.
Dev hut has a good article on setting the object to allow intellisense here:
While intellisense will work after dimensioning as the specific report module, it will not run when setting the object.
This also is true if the report is open or closed.
Thanks for any help
I am attempting to access vba defined report properties for a specific report.
Dev hut has a good article on setting the object to allow intellisense here:
VBA Programming a Form or Report with Intellisense
How to declare a form or report variable in VBA to gain Intellisense for that object and simplify your coding.
www.devhut.net
While intellisense will work after dimensioning as the specific report module, it will not run when setting the object.
Code:
Sub Test()
Dim rpt As Report_Rep_PurchaseOrder
Set rpt = Reports(Report_Rep_PurchaseOrder).Report 'ERROR HERE Type Mismatch
Set rpt = Reports![Rep_PurchaseOrder].Report 'also with this syntax
rpt.P_PoinvID = "6000"
End Sub
This also is true if the report is open or closed.
Thanks for any help