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

calculated control based on criteria on a report

Status
Not open for further replies.

hlkelly

Technical User
Jul 11, 2003
108
US
I have a report grouped by expense detail. Each detail has certain criteria (cash or credit card). I have a total of the overall expense report on the report footer but I would like two other totals: Cash and Credit card. How can I get all three totals to appear on the form? I can't figure out the syntax.

Thanks!
 
Have a look at the IIf function:
Sum(IIf(criteria='Cash', amount, 0))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top