ACC2000: How to Rank Records Within a Query (208946)
The information in this article applies to:
This article was previously published under Q208946 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
This article has three examples that show you how to rank records
within a query. The first example ranks records from a table. The second
example ranks the results of a totals query. The third example demonstrates
an alternative method of handling ties in ranking.
All the examples in this article require a field that has a value that
can be evaluated using either the Greater Than (>) or the Less Than (<) operator, and a subquery to count the number of records that are greater than or less than the current record.
NOTE: You can see a demonstration of the technique that is used in this article in the sample file Qrysmp00.exe. For information about how to obtain this sample file, please see the following article in the Microsoft
Knowledge Base:
207626 ACC2000: Access 2000 Sample Queries Available in Download Center
Modification Type: | Major | Last Reviewed: | 11/20/2001 |
---|
Keywords: | kbinfo KB208946 |
---|
|