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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

suppressing detail for each group

Status
Not open for further replies.

draacor

IS-IT--Management
Jul 17, 2007
69
US
Thanks to IdoMillet i was able to figure out how to randomize the data but now i cant figure out how to make it so it picks 5 records for each group instead of just 5 records total. IdoMillet mentioned that you would have to apply it to "within group" logic but i am uncertain as to what this means. Does anyone know how to suppress the details for each group so it only shows 5 records?
 
You may need to manually count your detail records and suppress accordingly.

// formula @CntDetail - place in detail section and suppress printing of this formula.

WhilePrintingRecords;
numberVar Cnt;
Cnt:= Cnt + 1

// formula @CntDetailReset - Place in group footer and suppress printing of this formula.

WhilePrintingRecords;
numberVar Cnt:= 0

In detail section expert conditionally suppress with following formula:

{@CntDetail} > 5

MrBill
 
wow that worked great, thank you all for your help :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top