Results 1 to 5 of 5
  1. #1
    tampenny is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2018
    Posts
    2

    Access - sort of autonumber query, but not quite


    Hi,
    I have a data sheet cataloging my vinyl records,
    the first column is a number field relating to it's order, say 1 - 50 for example,
    so I get a new album enter it's details in line 51 but it needs to really be on line 19,
    so i number it 19 then sort the column in ascending order,
    now have 2 x # 19,
    I then delete the numbers from the second 19 to 50 and then re-enter each number manually from 20 to 51,
    hope this is making sense,
    I used to be able to press the down arrow on my keyboard and it would fill the number (20 - 51) automatically for me, much easier,
    I tried Auto Numbering but that isn't doing it for me,
    I'm sure it is something simple, please help,
    thank you.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    You need to research Database and Table Design and related concepts.
    I would recommend you spend 30-60 minutes working through one of the tutorials from RogersAccessLibrary mentioned in the link.

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Are you caring most about the number, or just it's place in the order? If placement, increment by some other factor, such as 100.
    Next time, 250 goes between 100 and 300. After that, 275 between 250 and 300...
    Not to take away from the prior suggestion as learning is good
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    tampenny is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2018
    Posts
    2
    thank you both very much for your responses, will work through your suggestions and see where it leads me.

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Another option......

    Use VBA code to renumber the sort order of records. See example dB (the first record sort number MUST be >0)
    Attached Files Attached Files

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

Similar Threads

  1. How to sort top N in Access Query
    By nappim11 in forum Queries
    Replies: 16
    Last Post: 11-18-2015, 05:14 PM
  2. Access Query Sort Order every other one
    By Gina Maylone in forum Access
    Replies: 2
    Last Post: 09-29-2014, 11:26 AM
  3. Replies: 1
    Last Post: 04-07-2014, 02:59 AM
  4. Replies: 4
    Last Post: 11-21-2013, 05:06 PM
  5. Access DB issue with autonumber
    By cusfirstadmin in forum Forms
    Replies: 1
    Last Post: 12-02-2010, 10:45 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