Posted 16 August 2023, 3:32 pm EST
I am using Active Reports 7 and have no great problems using it.
I am wanting to suppress the creation of the report when there is no data found in the SQL query used in the data source.
At the moment in the Report Script i have the following method…
Sub ActiveReport_NoData()
_hasData = False
HideReportGroups
End Sub
It simply hides all the sections except a group section which has the text “No data found”
But rather than create the report with that message, Id love not to output the report at all.
Is there a way or a line I can add to the report script that would cancel the report all together ??
I have tried Me.Cancel but get an error…Cancel is not a member of ‘Script.ReportScript’
What can I put in the Report Script that would just cancel the report from running ?
Thanks in advance