I am relatively inexperience with Access and have found myself over my head. I have put together an Access database for a local power-lifting meet. It is a relatively simple DB but has preformed well over the last few years. Each year I have been asked to add a little something to it: this year – team totals. Team totals are calculated from the top eleven lifters for each team. Each first place in a weight class earns a team 12 points, second place earns 9 points and so on. Note: there are 12 weight classes for both Men and Women in two divisions for each (junior varsity and varsity).
My problem is I do not save a lifters place. After much searching and more frustration I believe that I need to run a ranking query that will save the rank of each lifter in his/her weight class. I have tried with out success. I have a query which sorts by GENDER, WEIGHTCLASS, DIVISION, and by TOTALPOUNDS. I have changed the alias of the query to TeamAwards1 with the query name as TeamAwards and then I tried to add the field
All this did was put a 1 in each lifters rank field.
I believe that I need to build the SQL statement to include the sort into the Ranking statement but I an unsure how to go forward. Please have pity and point me in the right direction. I have Googled and searched but have not been able to solve this one. I am sure there is an easy solution yet is alludes me.
Thank you
My problem is I do not save a lifters place. After much searching and more frustration I believe that I need to run a ranking query that will save the rank of each lifter in his/her weight class. I have tried with out success. I have a query which sorts by GENDER, WEIGHTCLASS, DIVISION, and by TOTALPOUNDS. I have changed the alias of the query to TeamAwards1 with the query name as TeamAwards and then I tried to add the field
Code:
Ranking: (Select Count (*) from TeamAward Where [CountofTOTALPOUNDS] > [TeamAwards1]. [CountofTOTALPOUNDS]) + 1
I believe that I need to build the SQL statement to include the sort into the Ranking statement but I an unsure how to go forward. Please have pity and point me in the right direction. I have Googled and searched but have not been able to solve this one. I am sure there is an easy solution yet is alludes me.
Thank you