Forum Discussion
mister19stick
Aug 11, 2025Copper Contributor
keep group footers together on one page
I have a report that has a fixed number of detail lines per grouping. There is one page per set of detail records. It needs to be grouped to three levels. I can see how to skip to a new page for e...
Kidd_Ip
Aug 12, 2025MVP
Take this:
- Use “Keep Together” Property
- Set the “Keep Together” property of each group section (Group A, B, C) to “Whole Group”. This helps prevent group footers from being orphaned on a new page.
- Also set “Keep Together” on the Detail section if needed.
- Conditional Page Breaks
Use VBA or conditional formatting to suppress page breaks:
- In the Group Footer sections, add logic to conditionally suppress page breaks based on whether it's the last group or nested within another:
If Me.Page = Me.Pages Then
Me.GroupFooterC.NewPage = 0
Else
Me.GroupFooterC.NewPage = 1
End If
- Custom Footer Aggregation
- Create unbound controls in the Report Footer or Group A Footer that manually calculate and display totals for B and C.
- Use DSum or custom logic to aggregate values.
- Use Subreports
- Create subreports for each group level and embed them in the main report.
- This gives you more control over pagination and layout.