NoData Event - Event Procedures

NoData Event — Event Procedures

See Also         Example

To create an event procedure that runs when the NoData event occurs, set the OnNoData property to [Event Procedure], and click the Build button .

Syntax

Private Sub Report_NoData(Cancel As Integer)

The NoData event procedure has the following argument.

Argument Description
Cancel The setting determines whether to print the report. Setting the Cancel argument to True (–1) prevents the report from printing. You can also use the CancelEvent method of the DoCmd object to cancel printing the report.