G
Guest
Hi all,
I have built a Report in Access 2003 that calculates quite a lot of fields,
two of which calculate and return text values "High" or "Low" as their answer.
Then there is another field "Classification" that, in turn, uses the above
two (calculated) fields -"CatGP" and "CatPOP" for its own calculation ... In
Excel the expression is as follows:-
=IF(AND(N11="High",O11="High"),"Star",IF(AND(N11="Low",O11="High"),"Plowhorse",IF(AND(N11="High",O11="Low"),"Puzzle",IF(AND(N11="Low",O11="Low"),"Dog",""))))
Naturally in the Access Report the "Cell references" would be replaced with
the two fields -"CatGP" and "CatPOP".
I have tried the above Excel formula and replaced "IF" with "IIF" and the
Cell references with the two fields as above. But I cannot get it to work.
If I use ONLY the following 'formula'
=IIf([CatGP]="High",IIf([CatPOP]="High","Star"),"")
it does actually evaluate to "Star" where both "CatGP" and "CatPOP" have a
value of "High".
Could you PLEASE help by showing me what I should be doing for the field
"Classification" to evaluate the following,
=IIf ([CatGP]="High",IIf([CatPOP]="High","Star"),
=IIf ([CatGP]="Low",IIf([CatPOP]="High","Plowhorse"),
=IIf ([CatGP]="High",IIf([CatPOP]="Low","Puzzle"),
=IIf ([CatGP]="Low",IIf([CatPOP]="Low","Dog"),""))))
Thanks in advance, all the best for the Holiday season.
hotcat
I have built a Report in Access 2003 that calculates quite a lot of fields,
two of which calculate and return text values "High" or "Low" as their answer.
Then there is another field "Classification" that, in turn, uses the above
two (calculated) fields -"CatGP" and "CatPOP" for its own calculation ... In
Excel the expression is as follows:-
=IF(AND(N11="High",O11="High"),"Star",IF(AND(N11="Low",O11="High"),"Plowhorse",IF(AND(N11="High",O11="Low"),"Puzzle",IF(AND(N11="Low",O11="Low"),"Dog",""))))
Naturally in the Access Report the "Cell references" would be replaced with
the two fields -"CatGP" and "CatPOP".
I have tried the above Excel formula and replaced "IF" with "IIF" and the
Cell references with the two fields as above. But I cannot get it to work.
If I use ONLY the following 'formula'
=IIf([CatGP]="High",IIf([CatPOP]="High","Star"),"")
it does actually evaluate to "Star" where both "CatGP" and "CatPOP" have a
value of "High".
Could you PLEASE help by showing me what I should be doing for the field
"Classification" to evaluate the following,
=IIf ([CatGP]="High",IIf([CatPOP]="High","Star"),
=IIf ([CatGP]="Low",IIf([CatPOP]="High","Plowhorse"),
=IIf ([CatGP]="High",IIf([CatPOP]="Low","Puzzle"),
=IIf ([CatGP]="Low",IIf([CatPOP]="Low","Dog"),""))))
Thanks in advance, all the best for the Holiday season.
hotcat