Report.PrintSection Property (Access)
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Report.PrintSection Property (Access)

The PrintSection property specifies whether a section should be printed. Read/write Boolean.

expression .PrintSection

expression A variable that represents a Report object.

The PrintSection property uses the following settings.




(Default) The section is printed.


The section isn't printed.

Note Note

To set this property, specify a macro or event procedure for a section's OnFormat property.

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
© 2016 Microsoft