Results 1 to 2 of 2
  1. #1
    Paul-NYS is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    6

    Auto-number PK and prior numbers

    Hi


    I have an Access DB with a VB 6.0 front-end. I have a table with a PK that uses an auto-number. I deleted from data from this table in the past, then re-added it back in again just now. However, now when I go to enter a record in this table from the VB executable, I am getting an error for duplicate keys--as the auto-number tries to use a number that already exists. This happens when I just enter a record directly in the table in the DB also.

    Any idea how to fix this?

    Paul

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Run Compact & Repair and if that doesn't fix review http://www.pcreview.co.uk/forums/res...-t3132856.html
    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. auto enter sequential numbers
    By normie in forum Access
    Replies: 5
    Last Post: 05-25-2012, 10:38 AM
  2. Auto number 13 numbers
    By dmaddox in forum Access
    Replies: 10
    Last Post: 05-23-2012, 12:34 PM
  3. Replies: 1
    Last Post: 02-23-2012, 11:48 AM
  4. Renumbering Auto-Increment numbers
    By svcghost in forum Database Design
    Replies: 8
    Last Post: 02-19-2011, 08:48 AM
  5. Replies: 2
    Last Post: 09-10-2009, 05:42 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