Share via


Section.RepeatSection Property

Access Developer Reference

You can use the RepeatSection property to specify whether a group header is repeated on the next page or column when a group spans more than one page or column. Read/write Boolean.

Syntax

expression.RepeatSection

expression   A variable that represents a Section object.

Remarks

The RepeatSection property only applies to group headers on a report.

The RepeatSection property uses the following settings.

Setting Visual Basic Description

Yes

True

The group header is repeated.

No

False

(Default) The group header isn't repeated.

When printing a report that contains a subreport, the subreport's RepeatSection property will determine if the subreport group headers are repeated across pages or columns.

Example

The following example prints the group header "GroupHeader0" at the top of each page.

Visual Basic for Applications
  Reports("Purchase Order").Section("GroupHeader0").RepeatSection = True