Hello everyone,
I have a report with a subreport. They are not linked. Both are bound.
I need to show a message instead of showing an empty report, if both (main and sub) reports have no data.
I use NoData event of main report:
“You entered an expression that has an invalid reference to the property Form/Report.”
Does anybody know why?
Thanks.
surotkin
I have a report with a subreport. They are not linked. Both are bound.
I need to show a message instead of showing an empty report, if both (main and sub) reports have no data.
I use NoData event of main report:
I am getting an error:Private Sub Report_NoData(Cancel As Integer)
If Not Me!SubReportControl.Report.HasData Then
MsgBox "No records were found.", vbInformation, msgtitle
Cancel = True
End If
End Sub
“You entered an expression that has an invalid reference to the property Form/Report.”
Does anybody know why?
Thanks.
surotkin