markqu@msn.com
New member
- Local time
- Today, 00:37
- Joined
- Nov 18, 2008
- Messages
- 2
I have a tbl_Students with Name, Score and Rank as fields. Name and Score are entered via an access form. After all scores are entered, I want to push a button and update the Rank field in the same table according to the student's score. Student with the highest score is Rank 1, lowest score Ranks last (recordcount) or thereabouts. Where two or more students have the same score, the Rank must still increment.
Student Score Rank
Student1 91 1
Student2 88 2
Student3 79 3
Student4 79 4
Student5 79 5
Student6 77 6
Can this be done eloquenlty with an Access expression in a query? How?
I thought of walking through a record set which is sorted in decending order and updating each record to some VBA record counter. Seems a bit klugy but im open to ideas or code examples.
Student Score Rank
Student1 91 1
Student2 88 2
Student3 79 3
Student4 79 4
Student5 79 5
Student6 77 6
Can this be done eloquenlty with an Access expression in a query? How?
I thought of walking through a record set which is sorted in decending order and updating each record to some VBA record counter. Seems a bit klugy but im open to ideas or code examples.
Last edited: