Report.GrpKeepTogether property (Access)
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. Read/write Byte.
Syntax
expression.GrpKeepTogether
expression A variable that represents a Report object.
Remarks
The GrpKeepTogether property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Per Page | 0 | Groups are kept together by page. |
Per Column | 1 | (Default) Groups are kept together by column. |
This property can be set only in report Design view.
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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.