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

Only show multiple records

Status
Not open for further replies.

Julliet22

Technical User
Jun 23, 2004
1
BE
HI!

Using: Crystal Reports 9

I have data like the following:

code Amount Location
1234 3 B3

3453 8 K4

2344 9 H5
7 G7

I want the report to only show the codes (with amount and location) of which there are more then one record. This way I have a selection of the records which exsist on multiple locations.

Thanx for all the help in advance!!

- Julliet -
 
Julliet,

Insert a count on your code field into your Group footer.
Create a new selection with the selection expert on the count field : Greater then 2. You can suppress the count field so it wont be shown in the report.

This should do the the trick

CB
 
Create a count on the code field in your group footer.
Insert a selection criteria with your selection expert: Count on code greater then 1. Suppress the count field if you dont want the report to show this.

This should do the trick

CB
 
Group on code and then go to report->edit selection formula->GROUP and enter:

count({table.code},{table.code}) > 1

Replace {table.code} with your code field.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top