expression.PrintSection
expression Required. An expression that returns one of the objects in the Applies To list.
The PrintSection property uses the following settings.
Setting | Description |
---|---|
True | (Default) The section is printed. |
False | The section isn't printed. |
Microsoft Access sets this property to True before each section's Format event.
The following example does not print the section "PageHeaderSection" of the "Product Summary" report.
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
Reports("Product Summary").PrintSection = False
End Sub