D
dimpie
Hi - when a report does not have data, i would like to print a report that
says "NO Data"
I tried doing this in the no data event of the report, but this is not
working.
Here is my code
Private Sub Report_NoData(Cancel As Integer)
DoCmd.OpenReport "rpt_MP_Infract_NO_Data", acViewPreview
Cancel = True
End Sub
When i run this code, it will open this report that syas "NO Data" and goes
back to the same line i am calling the report that has data to open and gives
me a runtime error.
If this is confusing, please give me a fresh approach as how i could do this.
Thanks a lot!!!
says "NO Data"
I tried doing this in the no data event of the report, but this is not
working.
Here is my code
Private Sub Report_NoData(Cancel As Integer)
DoCmd.OpenReport "rpt_MP_Infract_NO_Data", acViewPreview
Cancel = True
End Sub
When i run this code, it will open this report that syas "NO Data" and goes
back to the same line i am calling the report that has data to open and gives
me a runtime error.
If this is confusing, please give me a fresh approach as how i could do this.
Thanks a lot!!!