Sum() certain fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my report, I have a control that adds all the fees together. However, I do
not want to include a particular fee with the strFeeType = C. How do I string
all these together into the control? Right now, my control source is
=Sum([curFeeAmt]). Thanks.
ck
 
Thanks, Duane: it worked! I was just starting to think it could not be done.
ck

Duane Hookom said:
=Sum(Abs([strFeeType]<>"C") * [curFeeAmt])

--
Duane Hookom
MS Access MVP


CK said:
In my report, I have a control that adds all the fees together. However, I do
not want to include a particular fee with the strFeeType = C. How do I string
all these together into the control? Right now, my control source is
=Sum([curFeeAmt]). Thanks.
ck
 
nice, solved my problem too

Duane Hookom said:
=Sum(Abs([strFeeType]<>"C") * [curFeeAmt])

--
Duane Hookom
MS Access MVP


CK said:
In my report, I have a control that adds all the fees together. However, I do
not want to include a particular fee with the strFeeType = C. How do I string
all these together into the control? Right now, my control source is
=Sum([curFeeAmt]). Thanks.
ck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top