annsolomon
MIS
I'm trying to follow the advice I found at thread181-48619 but can't get it to work. I end up with no report title at all.
I declared GetReportTitle as a public variable in a standard module.
I have this code in a Select Case statement:
GetReportTitle = "Need PO"
DoCmd.OpenReport "rptInvoiceBalanceDue", acViewPreview, , "[OrderNumber] like 'Need PO'"
In the report header I have a label called ReportTitle.
This is my report's open event:
Private Sub Report_Open(Cancel As Integer)
ReportTitle.Caption = GetReportTitle
End Sub
The report shows the correct data but no report title.
Can anyone see what I'm doing wrong?
Ann
I declared GetReportTitle as a public variable in a standard module.
I have this code in a Select Case statement:
GetReportTitle = "Need PO"
DoCmd.OpenReport "rptInvoiceBalanceDue", acViewPreview, , "[OrderNumber] like 'Need PO'"
In the report header I have a label called ReportTitle.
This is my report's open event:
Private Sub Report_Open(Cancel As Integer)
ReportTitle.Caption = GetReportTitle
End Sub
The report shows the correct data but no report title.
Can anyone see what I'm doing wrong?
Ann