I have a subform that contains information about different assignments and grades. The parent form represents a person. A person has multiple assignments and each assignment is assigned to more than just one person. My issue is that I need to rank each person on the grade they received for that assignment. For example, Assignment 1 is assigned to Person A, B, and C. If the grade of Person A on that assignment is 85%, Person B got 70%, and Person C got 90% then I need to determine the rankings (From highest mark to lowest: C -> A -> B) and update the Assignment 1 row of the currently loaded Person form. I know how to determine the ranks (which I thankfully found on this forum) however the problem I find is that when trying to run an update query to reference all of the assignments in a person's subform (to set the ranks of all of the assignments at once), the query to do so only references the very first row of the subform.
My ultimate question is how can I reference each row of a subform in a query. Currently it just sees the ID of the first entry in the subform and uses that for each subsequent row. This means that if a person got the highest grade on the first assignment in the subfrom, all of the assignment ranks below in the list for that person are also updated to '1st'.
Any help would be much appreciated.