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

SUM same record values?

Status
Not open for further replies.

vikoch

Programmer
Feb 6, 2008
38
US
I have a Table with columns (amounts):
amt1
amt2
amt3
amt4

I need to select and print the line (for same record)where:

amt1 >= 5 and amt2 >=5 and amt3 >= 5 and amt4 >= 5 and sum of (amt1, amt2, amt3, amt4) >=30

Is it possible to do this in Crystal? If it is, please help me.
Ira.

 
Try adding this in report->selection formula->GROUP:

amt1 >= 5 and
amt2 >=5 and
amt3 >= 5 and
amt4 >= 5 and
sum ([amt1, amt2, amt3, amt4]) >=30

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top