CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Location
    Malaysia
    Posts
    59

    Reset MS Access autonumber

    How to reset MS Access autonumber type and what is the limit for this autonumber?

    Thanks

  2. #2
    Join Date
    Sep 2006
    Posts
    635

    Re: Reset MS Access autonumber

    data type autonumber is long , search in google max value of 'long'.

    it seems be a number so ....... big.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Reset MS Access autonumber

    Remove AutoNumber
    Copy your DB
    Open your database in Access
    Delete the contents of your table
    Rename the table
    Copy the renamed table (structure only) to a new table
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Nov 2004
    Location
    LA. California Raiders #1 AKA: Gangsta Yoda™
    Posts
    616

    Re: Reset MS Access autonumber

    Just performa Compact and Repair on your database and that will reset all autonumber fields to the next available number in tables with records in them and it will reset the autonumber to 0 in tables with no records in them.


    The number of records possible in a table is dependant upon the tables size, not record numbers. Autonumber can go up to 2,147,483,647 but you will probably never get there as...

    table size limits are ...
    Access 2003: 2 gigabyte minus the space needed for the system objects.
    Access 2002 (XP): 2 gigabytes.
    Access 2000: 1 gigabyte.
    Last edited by RobDog888; July 14th, 2007 at 03:41 AM.
    VB/Office Guru™ (AKA: Gangsta Yoda™)
    VB Forums - Super Moderator 2001-Present

    Microsoft MVP 2006-2011

    Please use [code]your code goes in here[/code] tags when posting code.

    Senior Software Engineer MCP, BSEE, CET
    VS 2012 Premium, VS 6.0 Enterprise SP6, VSTO, Office Ultimate 2010, Windows 7 Ultimate
    Star Wars Gangsta Rap SE Reputations & Rating Posts Office Primary Interop AssembliesAdvanced VB/Office Guru™ Word SpellChecker™.NETAdvanced VB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address ListVB6/Crystal Report Ex.VB6/CR Print Setup Dialog Ex.

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