Results 1 to 4 of 4
  1. #1
    Geoff Dolman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2016
    Longmont, CO

    How to fix simple database that has a gap in primary key entry auto number.

    I have a small simple database and have not used Access in years, so this is a pretty elementary issue. Sorry bout that. My primary key is an auto number. Somehow I have a break in the numbers, so of 82 records, there is no #56. How can I close this gap? That is, to close that gap and be to renumber the remaining records with the current number minus one -- change 57 to 56, 58 to 57 etc. Thanks for your help

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    You can't close the gap in autoNum. You don't have to. It's an arbitrary number just to make it unique.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Ottawa, Ontario, Canada; West Palm Beach FL

  4. #4
    shinydiamond is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    You can close the gap if it drives you crazy like it did for me. Just take off the primary key, delete the auto number field. Then create a new field with the same name and select auto number and it will renumber the existing records. Reapply the key. Easy.

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

Similar Threads

  1. Updating a primary key based on form entry
    By Confused in access in forum Forms
    Replies: 7
    Last Post: 08-24-2015, 04:21 PM
  2. Replies: 5
    Last Post: 11-30-2014, 12:46 PM
  3. Manual Primary Key Entry
    By in forum Access
    Replies: 1
    Last Post: 03-03-2014, 03:09 PM
  4. simple auto merge database
    By benh in forum Database Design
    Replies: 14
    Last Post: 02-06-2014, 10:21 AM
  5. Primary Key Auto Number not available in Excel for import
    By justphilip2003 in forum Import/Export Data
    Replies: 1
    Last Post: 04-30-2013, 07:52 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
Other Forums: Microsoft Office Forums