Thanks for the reply. With a little manipulation, your formulas worked well except the linecnt variable is still calculated by record. I wasn't able to figure out any way to make it total by section.
So, if I wanted only 7 lines and part A had 2 lines, part B had 3 lines, part C had 3 lines and part D had 3 lines then
remainder({@linecnt}, 7) = 0
would never evaluate to 0 and I'd get all records on one page.
If I do the reset on inrepeatedgroupheader and change the next page after formula to
{@linecnt} >= 7 I get a little better result because the page break will occur when {@linecnt} = 8.
If I could figure out a way to total the number of sections, it would be perfect.
Thanks,
Mike