belovedcej
Programmer
I am attempting to use the principles outline in this help article:
My problem is in actually getting the Property Set to work properly.
Here's the part in my class module:
Here's how I'm using it (this is a report module)
In running this through the debugger, my Report never gets passed into the set event of the class module. It doesn't say null or nothing - it's just blank. Which, of course, explains why nothing else works.
Could anyone tell me what I'm doing wrong? I have also tried:
Set rpt.Report = Me
But that had the same problem.
My problem is in actually getting the Property Set to work properly.
Here's the part in my class module:
Code:
Private WithEvents rpt As Access.Report
Property Set Report(rptIn As Access.Report)
Set rpt = rptIn
End Property
Here's how I'm using it (this is a report module)
Code:
Private rpt As ReportHandler
Private Sub Report_Open(Cancel As Integer)
Set rpt = New ReportHandler
Set rpt.Report = Report_rptPendingClaims
End Sub
In running this through the debugger, my Report never gets passed into the set event of the class module. It doesn't say null or nothing - it's just blank. Which, of course, explains why nothing else works.
Could anyone tell me what I'm doing wrong? I have also tried:
Set rpt.Report = Me
But that had the same problem.