I need to count the number of Female Defendants and number of Male Victims in a parameter query. The fields [DefSex] and [VSex] are text fields from a lookup column where F is female and M is Male. This report will be specific by date and specialist. I want the specialist, Kati Behrens (in the query the criteria for the field [Specialist] is set to Kati Behrens) to be able to pull up all of her cases from 08/01/12 (which is a parameter in the query).
In the query I created a field for [DefSex] which is FDEF: IIf([defsex]="F",1,0) and one for [VSex] which reads as VMALE: IIf([VSEX]="M",1,0)
In the report I put a text box that reads =sum([FDEF] and another =([Vsex])
However this gives me an error when I put it on the report footer. If i place these boxes in the detail section is calculates but it calculates depending on many Charges there are, if one case has 3 charges it counts 3 female defendants.
How can I get this field to count only once?
I can send snapshots of my report and query. Please help, I am new to access and am seriously confused. I am open to any suggestions.
Thanks