I am a teacher trying to do my grades in Access 2000 and have hit a snag - I've figured out how to calculate the grades (with a linked Excel worksheet) using a 0-4 point scale, but want the grades to be displayed as a A-F value.
I did this in Excel with a formula (example):
=IF(COUNT(Y2)=0,"",IF(Y2>3.4,"A",IF(Y2>2.7,"B",IF(Y2>1.7,"C",IF(Y2>0.9,"D","F")))))
which took care of not counting blank (grade) assignments and making sure the final average only calculated graded items.
I am trying to accomplish the same thing in Access, focusing primarily on the IIf function. Maybe a macro? I'm trying to learn! I've tried several IIf variants, but the best one gave a circular reference error.
Basically, all I want is if the value is Null, the field in the report will be blank. If the value is 0, and "F" is displayed, if it is 1, a "D" is displayed, if it is a 2, a "C" is displayed, if it is 3, a "B" is displayed, and if it is 4, an "A" is displayed. The report is from a table with grades recorded as 0,1,2,3,4, or blank.
Any suggestions?
I did this in Excel with a formula (example):
=IF(COUNT(Y2)=0,"",IF(Y2>3.4,"A",IF(Y2>2.7,"B",IF(Y2>1.7,"C",IF(Y2>0.9,"D","F")))))
which took care of not counting blank (grade) assignments and making sure the final average only calculated graded items.
I am trying to accomplish the same thing in Access, focusing primarily on the IIf function. Maybe a macro? I'm trying to learn! I've tried several IIf variants, but the best one gave a circular reference error.
Basically, all I want is if the value is Null, the field in the report will be blank. If the value is 0, and "F" is displayed, if it is 1, a "D" is displayed, if it is a 2, a "C" is displayed, if it is 3, a "B" is displayed, and if it is 4, an "A" is displayed. The report is from a table with grades recorded as 0,1,2,3,4, or blank.
Any suggestions?