Sets or returns the value of the On No Data box in the Properties window of a report. Read/write String.
expression.OnNoData
expression Required. An expression that returns one of the objects in the Applies To list.
The NoData event occurs after Microsoft Access formats a report for printing that has no data (the report is bound to an empty recordset), but before the report is printed.
The OnNoData value will be one of the following, depending on the selection chosen in the Choose Builder window (accessed by clicking the Build button next to the On No Data box in the report's Properties window):
If the On No Data box is blank, the property value is an empty string.
The following example prints the value of the OnNoData property in the Immediate window for the "Purchase Order" report.
Debug.Print Reports("Purchase Order").OnNoData