Hi,
I have a report rptASof which has a subreport named rptSubAsof.
The issue here is that I don't want to print the report when there is no data in the report.
I try to put this in the On NoData event of the rptASof:
Private Sub Report_NoData(Cancel As Integer)
Msgbox "No Data"
Cancel = True '(Correct)
End Sub
But this error pop up when i try to run it :
"Object invalid or no longer set" and the whole program hangs.
Will someone point me to the correct way please ?
Thanks
I have a report rptASof which has a subreport named rptSubAsof.
The issue here is that I don't want to print the report when there is no data in the report.
I try to put this in the On NoData event of the rptASof:
Private Sub Report_NoData(Cancel As Integer)
Msgbox "No Data"
Cancel = True '(Correct)
End Sub
But this error pop up when i try to run it :
"Object invalid or no longer set" and the whole program hangs.
Will someone point me to the correct way please ?
Thanks