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!

Limiting record returns to Crystal

Status
Not open for further replies.

seller

Programmer
Feb 4, 2002
9
US
Sample table structure is :

ID COURSENUM CODE
28244 12200100 A
15639 12200100 U
28244 44001000 A
36186 44001000 U
28244 12200100 U

As you can see from the table above ID 282244 has entries of the same COURSENUM (12200100) twice. I need to limit the return to Crystal only data where the number of ID and COURSNUM matching pairs are greater than 10.

TIA
 
Group by ID and within ID by COURSNUM.

Use a Group Selection Formula of
-----------------------------------
Count({COURSNUM}, {COURSNUM}) > 10
-----------------------------------

Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Ido,

That worked great! I had started looking at the count function but could not get it to work until you pointed out that it needs to go into the group selection.

I appreciate the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top