I would like to get rank by using ms access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Samuel Wekesa
    New Member
    • May 2018
    • 1

    I would like to get rank by using ms access

    Formula for finding rank in ms access
    Last edited by Samuel Wekesa; May 13 '18, 04:09 PM. Reason: To check errors in questions
  • Nauticalgent
    New Member
    • Oct 2015
    • 102

    #2
    Maybe you should try posting this in the Access forum of this site and not Oracle?

    Comment

    • Nauticalgent
      New Member
      • Oct 2015
      • 102

      #3
      Not quite following g you here...is Rank a field in a table or are you referring to an Autonumber field? Going to need some details in order to help.

      Comment

      • twinnyfo
        Recognized Expert Moderator Specialist
        • Nov 2011
        • 3653

        #4
        Conceptually, you have to use the DCount() funciton on the query or table you want the rank for. However, you need to provide more information before we can give any better advice.

        Comment

        • jfreeland
          New Member
          • Sep 2023
          • 1

          #5
          If you want to rank data in MS Access, you will need to go into the query builder and in SQL view.

          Code:
          SELECT Table,
                 (SELECT COUNT(T1.fieldyouwanttorank) 
                    FROM
                           [Table] AS T1 
                   WHERE T1.fieldyouwanttorank>= T2.fieldyouwanttorank) AS Rank 
          FROM 
                [Table] AS T2 
          ORDER BY fieldyouwanttorankDESC
          This YouTube video also provides a guide on how to do it (as well as how to break a tie when you have ranked data with 2 or more of the same number): https://youtu.be/9wlme8NcBC8

          Comment

          • cactusdata
            Recognized Expert New Member
            • Aug 2007
            • 223

            #6
            My function RowRank is for you:
            VBA.RowNumbers# 5-rank

            Comment

            • isladogs
              Recognized Expert Moderator Contributor
              • Jul 2007
              • 479

              #7
              See also my approach based on the Serialize function: Rank Order in Queries

              Comment

              Working...