Results 1 to 2 of 2
  1. #1
    DMullane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    1

    Sequentially Numbered Column

    Hey guys,

    So I feel like this should be such a simple task, but I can't figure it out. I just want a column that automatically numbers itself sequentially. I don't want the AutoNumber format, because if I end up deleting the last row, when I add a new row I want it to use the same number the last row had before being deleted.

    I'm guessing I need to make a column using a calculation and somehow have it increment every time a new row is added, but I can't find any function in Access to do this.

    Thanks for the help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,674
    Run Compact & Repair after deleting the last row and Access should pick up that deleted number. It's when deletion occurs between existing records that the number is lost (can be used programmatically but then need to run Compact & Repair).

    Otherwise will need code to generate custom unique identifier. This is a common topic in forum.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Adding sequentially
    By Thompyt in forum Programming
    Replies: 13
    Last Post: 11-21-2014, 10:55 AM
  2. Making Access display records sequentially
    By louislinti in forum Access
    Replies: 1
    Last Post: 10-05-2013, 04:49 PM
  3. Replies: 4
    Last Post: 11-10-2011, 03:26 PM
  4. Sequentially number records in a table field
    By kenton.l.sparks@gmail.com in forum Programming
    Replies: 4
    Last Post: 04-08-2011, 08:24 PM
  5. A column numbered: 1,2,3,4,5...
    By eezing in forum Queries
    Replies: 1
    Last Post: 08-18-2009, 09:44 PM

Tags for this Thread

Posting Permissions

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