Is it possible to do a sum of field B, only when field A has the value of 1?
Example:
=IIf([A]="1",Sum(),"")
The problem with my statement above, is that it is doing a sum of all of the records of field B, whereas I only want it to sum the records that have a value of 1, in field A.
I want to use this statement as a control source for my form.
Example:
=IIf([A]="1",Sum(),"")
The problem with my statement above, is that it is doing a sum of all of the records of field B, whereas I only want it to sum the records that have a value of 1, in field A.
I want to use this statement as a control source for my form.