Argument | Description |
sectionname | The name of the report section whose Print event procedure you want to run. |
Cancel | The setting determines if the printing of the section occurs. Setting the Cancel argument to True (–1) cancels printing of the section. |
PrintCount | An Integer value that specifies whether the Print event has occurred more than once for a record. For example, if part of a record is printed on one page and the rest is printed on the next page, the Print event occurs twice, and Microsoft Access sets the PrintCount argument to 2. |
Private Sub CustomerDetail_Print(Cancel As Integer, _
PrintCount As Integer)
If PrintCount > 1 Then Cancel = True
End Sub