Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force new group

Status
Not open for further replies.

duehring

Technical User
Jan 4, 2012
2
US
I would like to limit group details to n records. If 'details > n', a new group would print. I don't care how many groups/details are on each page, and I don't want to 'new page after'. I just want the 'details > n' to print in the next group down. Ideas?

Example if details > 2
----------------------
Unique Employee 1 SSN Date of Hire
Sales 1
Sales 2

Unique Employee 1 SSN Date of Hire
Sales 3

Unique Employee 2 SSN Date of Hire
Sales 1

Unique Employee 3...
 
If these don't need to be groups per se, and if you do in fact want the employee to repeat above new details, then you can do this:

Insert a group on employee and suppress the group header. Insert a details b section. Add the employee field to details_a and the sales field to details_b. Then insert a running total {#cntwingrp} that does a count of {table.sales}, evaluate for each record, reset on change of group: {table.employee}.


In the section expert->details_a->suppress->x+2, add this formula:

remainder({#cntwingrp},2)<>1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top