True/false formula on access

benj -  
 atimor -
Hello,
I wrote this formula in Access: =IIf(([Note]<=20),[E],IIf(([Note]<=41),[D],IIf(([Note]<=61),[C],IIf(([Note]<=81),[B],IIf(([Note]<=100),[A]))))), but it doesn’t work, instead I see the message #Name?.
Does anyone know what the problem is in this formula?
It is used to score suppliers, I want to assign them a grade based on the points accumulated.
Thanks in advance
Configuration: Windows XP Internet Explorer 6.0

3 answers

benj
 
Got it! It was partly the " and also a matter of parentheses. The formula gives this: =IF([Totals]<=20,"E",IF([Totals]<=40,"D",IF([Totals]<=60,"C",IF([Totals]<=80,"B",IF([Totals]<=100,"A"))))).
Thank you for the help.
4