Hi Everyone,
I'm having a problem with a query not recognizing the "Between" portion of an IIf statement in a calculated field.
The person I am currently working on has a PctCallsHandled value of 79%. Last time I checked, that fell firmly between 75% and 99%. However, it is evaluating it as not falling between those values - assigning an "N" in the OverallRank. I think I'm missing something really obvious here - because I swear I've done this very thing before and it has worked...
Let me know your thoughts or if I'm just plain losing my mind!
Thanks!
-Elysynn
I'm having a problem with a query not recognizing the "Between" portion of an IIf statement in a calculated field.
Code:
SELECT Query3.fk_ScorecardID, Sum(Query3.PctCallsHandled) AS SumOfPctCallsHandled, IIf([PctCallsHandled]>0.99,"E",IIf([PctCallsHandled] Between 0.75 And 0.99,"M","N")) AS OverallRank,
FROM Query3
WHERE (((Query3.Ranking)="M"))
GROUP BY Query3.fk_ScorecardID, IIf([PctCallsHandled]>0.99,"E",IIf([PctCallsHandled] Between 0.75 And 0.99,"M","N"));
The person I am currently working on has a PctCallsHandled value of 79%. Last time I checked, that fell firmly between 75% and 99%. However, it is evaluating it as not falling between those values - assigning an "N" in the OverallRank. I think I'm missing something really obvious here - because I swear I've done this very thing before and it has worked...
Let me know your thoughts or if I'm just plain losing my mind!
Thanks!
-Elysynn