P
pgmr2be
Guest
I want to sum only the values that = certain criteria. For example I have a text field "TypeOfPump" which can be Pump1,Pump2,etc. I also have number field "FlowRate" which can be 20,50,200 etc. I want to sum all of the fields that contain Pump1 only. I can sum with no problem, just when I try to use criteria. Here is my expression that I used for the control source in a text box on the report, it turns the value 0. =IIf(Sum([FlowRate]),([TypeOfPump])="Pump1"). I pretty sure what I want to do is possible. If anyone has any suggestions, it would be greatly appreciated!