CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: AutoNumber

  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    AutoNumber

    What can I do to fix this? When I use AutoNumber in MSAccess, if the record was deleted, the numbers become nonsequanced, they are not in order anymore, and for example, if the record #18 was deleted, the numbers in AutoNumber would be ...16, 17, 19, 20.....18 is missing, so how to "refresh" the AutoNumber? Is it a bug in MS Access or am I setting up the column for AutoNumber wrong?


  2. #2
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Re: AutoNumber

    you cannot reset this; this is the way it was designed to work.



    Jim Hewitt
    Software Developer
    Liberty Tax Service
    www.LibertyTax.com

  3. #3
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: AutoNumber

    This is not bug - this is correct work.
    If you have 100000 records in database and delete record #1.
    After delete database need update 99999 records and this is very big transaction locking all database. This is give us more problem in multiuser environment.
    All SQL server don't update Autonumber records ))

    Andy Tower

  4. #4
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: AutoNumber

    What are you trying to do? There may be other solutions to your problem.

    David Paulson


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured