Report.PrintSection Property

Access Developer Reference

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

Syntax

expression.PrintSection

expression   A variable that represents a Report object.

Remarks

The PrintSection property uses the following settings.

Setting Description

True

(Default) The section is printed.

False

The section isn't printed.

Bb237724.vs_note(en-us,office.12).gif  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.

Example

The following example does not print the section "PageHeaderSection" of the "Product Summary" report.

Visual Basic for Applications
  Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
 
    Reports("Product Summary").PrintSection = False
 
End Sub

See Also