GrpKeepTogether Property

Applies To   Report.

Description

You can use the GrpKeepTogether property to specify whether groups in a multiple column report that have their KeepTogether property for a group set to Whole Group or With First Detail will be kept together by page or by column.

Setting

The GrpKeepTogether property uses the following settings.

Setting

Description

Visual Basic

Per Page

Groups are kept together by page.

0

Per Column

(Default) Groups are kept together by column.

1


You can set the GrpKeepTogether property by using the report's property sheet, a macro, or Visual Basic.

This property can be set only in report Design view.

Remarks

You can use this property to specify whether all the data for a group will appear in the same column. For example, if you have a list of employees by department in a multiple-column format, you can use this property to keep all members of the same department in the same column.

The GrpKeepTogether property setting has no effect if the KeepTogether property for a group is set to No.

See Also   GroupInterval property, GroupOn property, KeepTogether property — groups, KeepTogether property — sections.