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

top 10 detailed records

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
What is the easiest way to display only the last(most current events) 10 records for each group?

Thanks Paul
 
Depends on database design, Crystal version, etc.

One method would be to sort the rows descending on the date field, and then use formulas to suppress those greater than 10 rows per group:

group header formula:

whileprintingrecords;
numbervar RowCount:=0;

Place a formula in the Details section as in:

whileprintingrecords;
numbervar RowCount:=RowCount+1;

Right click the details and select format section->X 2 next to suppress place:

whileprintingrecords;
numbervar RowCount;
RowCount > 10

-k
 
k

It work great!

Thanks Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top