Hello,
I have a query where I am calculating a new field from the SUM of some other fields. This result coupled with a value from another table would be used to return a value (should this be in a table?). Here's an example:
qryRiskRating
Select (tblRisk.Category1 + tblRisk.Category2 + tblRisk.Category3 + tblRisk.Category4)/4 AS RatingCalc, IIf ([RatingCalc]>=2,"High",IIf([RatingCalc]<=1.5,"Low","Medium")) AS RiskRating
So I want to take the RiskRating and another field to return a value. I had tried to do a ridiculous Nested If statement but Access decided to say it was too complex. I know there should be a way to do a lookup table of some sort but am at a loss on how to do it.
Thanks in advance for your help!
Derek
I have a query where I am calculating a new field from the SUM of some other fields. This result coupled with a value from another table would be used to return a value (should this be in a table?). Here's an example:
qryRiskRating
Select (tblRisk.Category1 + tblRisk.Category2 + tblRisk.Category3 + tblRisk.Category4)/4 AS RatingCalc, IIf ([RatingCalc]>=2,"High",IIf([RatingCalc]<=1.5,"Low","Medium")) AS RiskRating
So I want to take the RiskRating and another field to return a value. I had tried to do a ridiculous Nested If statement but Access decided to say it was too complex. I know there should be a way to do a lookup table of some sort but am at a loss on how to do it.
Thanks in advance for your help!
Derek