Problem:
I have
Tblgrades
Score (will only ever be 0 up to 240)
Grafef txt field
TblBoundaries
CalendarId (integer)
F1 integer score needed to get grade 1
F2 integer score needed to get grade 2
F3 integer score needed to get grade 3
F4 integer score needed to get grade 4
F5 integer score needed to get grade 5
Eg 19 15. 25. 51. 106. 180
What I need.....
In tblgrade
A table with 241 rows with score and corresponding grade.
all scores up to f1 to have a grade 0
All scores f1 up to f2 to have a grade of 1-, 1 or 1+ depending on which third the grade is in.
Similar for grade 2,3,4 and 5
From the above example:
0-14 will be 0
15-17 will be 1-
18-21 will be 1
22-24 will be 1+
25-33 will be 2-
34-42 will be 2
43-50 will be 2+
And so on
I’ve managed to write a rather complex routine in vba which does work but wondered if anyone could help with just a query which might do the job faster.
Thanks for taking a look.