K
KFox via AccessMonster.com
Here's what I have in a query thus far.
D: Sum(IIf([tblException]![DP Code]="D" Or [tblException]![RW Code]="D",
[tblException]![DP value]+[tblException]![RW Value],0))
The problem is I don't want to use OR nor does AND apply. I want the DP
Value and RW Value added together for those cases when the values in the Code
columns = "D". When I use OR, I find that it's adding more into the total
than it should.
Can I not use IIF in this scenario?
Thanks!
Kellie
D: Sum(IIf([tblException]![DP Code]="D" Or [tblException]![RW Code]="D",
[tblException]![DP value]+[tblException]![RW Value],0))
The problem is I don't want to use OR nor does AND apply. I want the DP
Value and RW Value added together for those cases when the values in the Code
columns = "D". When I use OR, I find that it's adding more into the total
than it should.
Can I not use IIF in this scenario?
Thanks!
Kellie