T
Tia
I did the following and am not getting the suggested result. When I put the
code in the report, nothing happens. I tried putting the code in the
subreport and then every system was seperated onto a seperate page but the
customer information only showed up on the first system of the group. Is
there something that I should check or that I may be missing?????
Thank you!!!
TIA
Add a line break control to the bottom of the Detail section of your
report.
Add an unbound control to the detail section.
Set it's control source to
=1
Set it's Running Sum property to Over All (or Over Group ... see *
below)
Name this control "CountRecords".
You can make it not visible if you don't wish to actually show the
record count.
Code the DetailFormat event:
Me.LineBreakName.Visible = [CountRecords] Mod 20 = 0
Change [LineBreakName] to whatever the actual name of the line break
control is.
* If you wish to start each Customer on a new page, then in Report
Design View, click on View + Sorting and Grouping. Enter the
[CustomerName] field in the Field/Expression column. In the lower
panel, set the GroupHeader property to Yes.
Save the changes.
Then in Report Design View, set the GroupHeader's ForceNewPage
property to BeforeSection.
Each Customer will start on a new page. Any customer with more than 20
records will also be split over several pages.
Change the Running Sum (above) from Over All to Over Group.
code in the report, nothing happens. I tried putting the code in the
subreport and then every system was seperated onto a seperate page but the
customer information only showed up on the first system of the group. Is
there something that I should check or that I may be missing?????
Thank you!!!
TIA
I have a report with a subreport. The report contains customer information
and the subreport contains systems we service for that customer. When I
print these reports, I only have room to print 20 records/systems per
customer. So I'm looking for suggestions on how to force a new page when the
number of systems exceed 20. When a new page is created, I would like the
customer information to show up on the new page.
Thank you for any suggestions.
Add a line break control to the bottom of the Detail section of your
report.
Add an unbound control to the detail section.
Set it's control source to
=1
Set it's Running Sum property to Over All (or Over Group ... see *
below)
Name this control "CountRecords".
You can make it not visible if you don't wish to actually show the
record count.
Code the DetailFormat event:
Me.LineBreakName.Visible = [CountRecords] Mod 20 = 0
Change [LineBreakName] to whatever the actual name of the line break
control is.
* If you wish to start each Customer on a new page, then in Report
Design View, click on View + Sorting and Grouping. Enter the
[CustomerName] field in the Field/Expression column. In the lower
panel, set the GroupHeader property to Yes.
Save the changes.
Then in Report Design View, set the GroupHeader's ForceNewPage
property to BeforeSection.
Each Customer will start on a new page. Any customer with more than 20
records will also be split over several pages.
Change the Running Sum (above) from Over All to Over Group.