razorkat99
Still figurin' it out
- Local time
- Today, 07:39
- Joined
- Oct 22, 2007
- Messages
- 35
I am trying to calculate a field based on specific criteria....thought about in the query, but not sure how, so I figured I could put it in the Control Source in my report.
I want to multiply my Service_Performed field * $1.00 if = to "Disconnect" or * $2.00 if = to "Move"
I only got this far:
=Sum(IIf([Service_Performed]="Disconnect" ......fill in the blanks, Sum(IIf([Service_Performed]="Move"....fill in the blanks))))
I need the fill in the blank expression.
I used =Sum(IIf([Service_Performed]="Disconnect",2)) just to see if I was on the right track 'cause I couldn't figure out how to do the multiplicaton part. This expression however, counts ALL records as a group instead of separate for each customer. Hence my thought of having to put my calculation in the query.
Can someone help please?
I want to multiply my Service_Performed field * $1.00 if = to "Disconnect" or * $2.00 if = to "Move"
I only got this far:
=Sum(IIf([Service_Performed]="Disconnect" ......fill in the blanks, Sum(IIf([Service_Performed]="Move"....fill in the blanks))))
I need the fill in the blank expression.
I used =Sum(IIf([Service_Performed]="Disconnect",2)) just to see if I was on the right track 'cause I couldn't figure out how to do the multiplicaton part. This expression however, counts ALL records as a group instead of separate for each customer. Hence my thought of having to put my calculation in the query.
Can someone help please?