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!

Need Help building a specific expression

Status
Not open for further replies.

Setter00

Technical User
Aug 9, 2001
3
US
I work with a claim auditing company and our entire management system is in Access '97. I'm trying to build an expression to calculate the total $ amount of all records with a specific status. Unfortunately I get errors every way I try it. The basic idea of the expression I need is:

=Sum[AmountFiled]when([Status]=8)

Any ideas?
 
If this is in a control this should basically do it

=iif([Status] = 8,Sum([AmountField]))
 
This will sum like you're looking for in a control.

=DSum("[AmountFiled]","TableDataIsIn","[Status]=8")

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top