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

Special Formula

Status
Not open for further replies.

aspnet98

MIS
May 19, 2005
165
US
If someone could show me a way to do the following it would really help!

I have the following data set.

ID Type AMT
1 THE 10
1 123 12
2 THE 10
3 000 0
4 THE 10
4 456 12

I need to show the following:
IF the type = THE then show all records with duplicate IDs:

This is what should show...

ID Type AMT
1 THE 10
1 123 12
4 THE 10
4 456 12

I do not know how to acomplish this in crystal. We can not use any sql commands b/c my db prevents it.

CR 8.5

Any ideas or suggestions would be great!
 
FIrst insert a group on {table.ID}. You can suppress the group header and footer if you wish. Then create a formula {@THE}:

if {table.type} = "THE" then 1 else 0

Then go to report->edit selection formulas->GROUP and enter:

sum({@THE},{table.ID}) > 0 and
count({table.ID},{table.ID}) > 0

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top