I have a report based on a query that calculates percentages for academic areas (Math, Science, English, etc.) for each term (1 to 4). The report then consists of 4 rows (1 for each term) and in each row is the corresponding percents for the academic areas.
What I want is a text box next to each percent that calculates the letter grade that corresponds to the percent.
Using VB and the OnPage event, I can get the 1st term to display the correct letter grade. However, in the other 3 rows (for terms 2, 3 and 4), the same letter grade is displayed as in Term 1.
Here is a small sample of the code I used to populate the letter grade text box for Math. Obviously it is only looking at the first record and then carrying that letter grade over to the next 3 rows.
If Me.qry_Math_Grade_Percent_Percent > 90 Then Me.MathGrade = "A"
If Me.qry_Math_Grade_Percent_Percent < 90 Then Me.MathGrade = "B"
What can I change to get the correct letter grade in each row?
Any help would be appreciated.
Thanks.
What I want is a text box next to each percent that calculates the letter grade that corresponds to the percent.
Using VB and the OnPage event, I can get the 1st term to display the correct letter grade. However, in the other 3 rows (for terms 2, 3 and 4), the same letter grade is displayed as in Term 1.
Here is a small sample of the code I used to populate the letter grade text box for Math. Obviously it is only looking at the first record and then carrying that letter grade over to the next 3 rows.
If Me.qry_Math_Grade_Percent_Percent > 90 Then Me.MathGrade = "A"
If Me.qry_Math_Grade_Percent_Percent < 90 Then Me.MathGrade = "B"
What can I change to get the correct letter grade in each row?
Any help would be appreciated.
Thanks.