I need a page break on a report after 22 records. So when record 23 hits, that record should be the first record on the next page. Any Ideas???? Thanks in advance!!!!
I posted this in response to your original post in the other topics forum...
Add a report group for some unique index in your dataset, set Group Footer to Yes, Group On to interval, and Group interval to 22. Then, in the group footer, add a page break control.
I would add a text box to the report detail section
[tt][blue]
Name: txtCount
Control Source: =1
Running Sum: Over All
Visible: No
[/blue][/tt]
Add a page break control to the bottom of the detail section:
[tt][blue]
Name: PgBrk
[/blue][/tt]
Then add code to the On Format event of the detail section:
Code:
Me.PgBrk.Visible = Me.txtCount Mod 22 = 0
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
Rjoubert...Thanks, but that will not work because I would have to create a subgroup for the item. So it will create a page break for every item. I first group by customers, so I added a group for part id.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.