Newbie question

  • Thread starter Thread starter Lysy
  • Start date Start date
L

Lysy

I am trying to cancel the report printing if there is no
data to print.
I tried cancel= true in the onnodata event but I have an
error " macro cancel does not exists"
Thanks!
 
I am trying to cancel the report printing if there is no
data to print.
I tried cancel= true in the onnodata event but I have an
error " macro cancel does not exists"
Thanks!

The cancel = True does not belong on the event line, but in the event
procedure code.

Display the report's property sheet.
Click on the Event tab.
On the OnNoData event line, write:
[Event Procedure]
Then click on the button with the 3 dots that will appear on that
line.
When the OnNoData event code windpw open, the cursor will flash
between 2 already existing lines.
Write:
Cancel = True
Between those 2 lines.
Svae the code.
Run the report.
 
Back
Top