Rank Tied Scores Consistently in a Microsoft Access Report
Question details
Calculate consistent place values for tied competition scores in an Access report.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A competition report displays calculated scores and needs to assign the same place to equal scores.
- Observed behavior
- A place value based on a report running total may assign different ranks to tied scores.
Identify the report's Record Source, the field or query that provides each final score, and any field used to separate competition groups. Exclude or otherwise handle missing scores before ranking, and confirm whether a higher or lower score should rank first.
Calculate competition rank in the report's source query
Use a correlated count to give equal scores the same rank instead of relying on a report running sum.
For each record, count the records with a higher score and add one. This produces competition ranks such as 1, 1, 3 for tied first-place scores. The example uses transaction amounts as scores; replace the table and field names with those in your database.
If scores are calculated in an existing query, use that saved query in place of Transactions. It should return one row per competitor or other item being ranked.
In Access, select Create > Query Design, switch to SQL View, and enter: SELECT T1.TransactionDate, T1.TransactionAmount, T1.CustomerID, (SELECT COUNT(*) + 1 FROM Transactions AS T2 WHERE T2.TransactionAmount > T1.TransactionAmount) AS [Rank] FROM Transactions AS T1;
Save the query, then open the report in Design View. In the report's Property Sheet, select the Data tab and set Record Source to the saved ranking query.
Select the place text box in Design View. In its Property Sheet, set Control Source to [Rank] and set Running Sum to No.
In Report Design, open Group & Sort and add a sort on the score field in descending order. Use the report's grouping and sorting controls rather than adding ORDER BY to the source query.
Open the report in Report View and check that equal scores have equal ranks and that the next rank reflects the number of higher-scoring records.
Review competition scores in WPS Spreadsheets
WPS Office is a free, lightweight alternative for working with Office documents. Open a spreadsheet export of your competition scores in its familiar interface for an easy transition, while continuing to use Access for the report and its database query.

Frequently Asked Questions
Why does a running sum give tied scores different places?
A running sum accumulates values as report records are processed; it does not automatically treat equal scores as one rank. Calculate the rank in the Record Source query and set the place text box's Running Sum property to No.
How do I rank scores separately for each competition group?
Add a group-field comparison, such as AND T2.GroupID = T1.GroupID, to the ranking subquery's WHERE clause. Then use Group & Sort in the report to group records by the same field.
How do I rank lower scores ahead of higher scores?
In the ranking subquery, replace T2.TransactionAmount > T1.TransactionAmount with T2.TransactionAmount < T1.TransactionAmount. In Group & Sort, sort the score field in ascending order.
Does this query produce ranks of 1, 1, 2 for a tie?
No. Counting all records with a better score produces competition ranks such as 1, 1, 3. Ranks of 1, 1, 2 are called dense ranks and require a different calculation.
Can I rank scores that are calculated in another query?
Yes. Save the query that calculates the final score, then use its name and score field in place of Transactions and TransactionAmount in the ranking query. Make sure it returns one row for each item being ranked.




