I have a report with 3 subreports that will include a report header with 12 labels that dynamically change their caption. The month names will go into the labels relative to the current date.
The problem is that either the header or the function will not accept the report name in any format that I have tried. I have also tried changing the type to object etc... Also I have tried each naming method that I could find online and in the help docs. Here is the general code.
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
TmLnHeaders (Report_subrptWorkplanIT)
end sub
Public Function TmLnHeaders(rpt As Report)
'Misc code
end function
Thank you for your help.
The problem is that either the header or the function will not accept the report name in any format that I have tried. I have also tried changing the type to object etc... Also I have tried each naming method that I could find online and in the help docs. Here is the general code.
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
TmLnHeaders (Report_subrptWorkplanIT)
end sub
Public Function TmLnHeaders(rpt As Report)
'Misc code
end function
Thank you for your help.