Results 1 to 4 of 4
  1. #1
    h_latha2k is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    2

    How to add sequential numbers to query resultset

    I want to be able to add sequential numbers to the query result set. For example if the records are:



    ID Name
    3423 Susan
    3424 Mary
    3425 Jim

    I want the result to be

    Serial No. Name
    1 Susan
    2 mary
    3 Jim

    I looked at all places but in vain. I have been trying the ROW_NUMBER() OVER ( ORDER BY (SELECT 1)) but it brings up syntax error in access.

    Any ideas??

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  3. #3
    h_latha2k is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    2
    Please pardon me. I could not follow the link that u sent. I could not follow how to add sequential numbers with ranking. I checked those links earlier but could not follow. Further help is appreciated.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    PMFJI but maybe this link will be useful: http://www.lebans.com/rownumber.htm

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

Similar Threads

  1. Can Sharepoint 'see' an Access Query Resultset?
    By vt800c in forum SharePoint
    Replies: 5
    Last Post: 04-26-2011, 07:21 AM
  2. Query with Dates as Numbers
    By forrestapi in forum Queries
    Replies: 9
    Last Post: 04-05-2011, 08:46 AM
  3. Adding Sequential Values to Make-Table Query
    By obrien.robj in forum Queries
    Replies: 2
    Last Post: 08-25-2010, 12:55 PM
  4. Replies: 3
    Last Post: 10-18-2009, 08:38 PM
  5. Replies: 1
    Last Post: 01-31-2009, 10:43 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