Results 1 to 4 of 4
  1. #1
    Kiran Prakash is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jun 2018
    Posts
    11

    Ranking or Auto Numbering in Query/ Report

    Is it possible to provide ranking or any auto number in a query or report under the condition , that table does not have primary key with autonumber.



    I want directly give ranking in my query

    Is it possible ?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    it is in principle, but perhaps might be slow for large amounts of data. Why not just sort the table in the report? Note that sorting the query recordsource is pointless for reports - you do it in the report itself. If this is insufficient then you need to provide some example data and the basis for ranking.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You can in a report, the query has field,Rank =1,
    then in the report turn on running sum,for Rank.
    sort the query by the field you want and the rank will grow.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    As the previous two answers have suggested its easy to do in a report.
    However its also possible to do so in a query if required. For one approach, see http://www.mendipdatasystems.co.uk/r...ies/4594424063
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Auto numbering
    By hemaazez in forum Access
    Replies: 9
    Last Post: 02-18-2019, 11:50 AM
  2. Access Auto Numbering
    By edieb in forum Access
    Replies: 1
    Last Post: 09-25-2013, 11:03 AM
  3. ranking: can i query a report?
    By stevepcne in forum Reports
    Replies: 2
    Last Post: 11-20-2011, 01:03 AM
  4. Auto numbering of forms
    By bgeorge12 in forum Forms
    Replies: 5
    Last Post: 06-30-2011, 05:05 PM
  5. Auto Numbering
    By rkruczk in forum Forms
    Replies: 0
    Last Post: 10-09-2006, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums