Hello, I'm using this to calculate totals in an Access 10 db query:
Sum(IIf([sex]="MALE" And [Diag]="200",1,0))+Sum(IIf([DiagII]="200",1,0))+Sum(IIf([DiagIII]="200",1,0))+Sum(IIf([DiagIV]="200",1,0))+Sum(IIf([DiagV]="200",1,0))
That's a copy of one of many similar but it's adding an additional number to the total and I can't figure out what is wrong with it>
Thanks for the help.
Don