Can some one help me! I am trying to create the simple database to calculate the scores and grades for students. I have been learning Ms Access about 3 months and still a beginner . Anyone can help me to write the code for this problem below and how to apply it to my table and query.
Here is the problem
I have the table call “students” and I have the fields “ StudID”, “StudName”, “Score”. I want to grade for students base on their scores by 1st, 2nd,3rd etc
Maxscore = 20
TotalStudents = 10 (or variable)
This is the output I want to report.
StudID Name Scores Grade
1 John 20 1
2 Kim 20 1
3 Scott 18 3
4 William 18 3
5 Joshua 18 3
6 Andy 10 6
7 Tony 9 7
8 Blaire 9 7
9 Paul 8 9
I want to grade all students with the highest scores (20) are grade #1. Like above John and Kim has scores equal 20, so their grades are #1. Next, Scott, William, Joshua get scores 18 so all they get grades #3 instead of grade #2 because I already give two grade #1 for John and Kim so I have to skip grade #2 and I use grade #3 instead. Next Andy gets grade #6 instead of grade #4, #5 because I have three people get grade #3 so I skip grade #4,#5. Just do the same the process for the rest of students.
I hope you understand the problem. English is my second language so it is very difficult for me to describe the problem clearly.
Any help,would be greatly appreciated.
Thanks in advance
Here is the problem
I have the table call “students” and I have the fields “ StudID”, “StudName”, “Score”. I want to grade for students base on their scores by 1st, 2nd,3rd etc
Maxscore = 20
TotalStudents = 10 (or variable)
This is the output I want to report.
StudID Name Scores Grade
1 John 20 1
2 Kim 20 1
3 Scott 18 3
4 William 18 3
5 Joshua 18 3
6 Andy 10 6
7 Tony 9 7
8 Blaire 9 7
9 Paul 8 9
I want to grade all students with the highest scores (20) are grade #1. Like above John and Kim has scores equal 20, so their grades are #1. Next, Scott, William, Joshua get scores 18 so all they get grades #3 instead of grade #2 because I already give two grade #1 for John and Kim so I have to skip grade #2 and I use grade #3 instead. Next Andy gets grade #6 instead of grade #4, #5 because I have three people get grade #3 so I skip grade #4,#5. Just do the same the process for the rest of students.
I hope you understand the problem. English is my second language so it is very difficult for me to describe the problem clearly.
Any help,would be greatly appreciated.
Thanks in advance