Results 1 to 4 of 4
  1. #1
    Sibtain is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Karachi
    Posts
    15

    Angry Auto Increment Reset


    How can i reset the auto increment value, if i want to add a record and the cancel it using a form in "Add Mode", the auto increment value is continuesly increasing beside i use "Undo Record" command it doesn't rsetting the auto value to its last one.

    Note: Compact and repair doesn't work for it in Access-2010

    How to reset it.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    One way is to create the un-bound form. Type/Fill all the fields in a un-bound fields on a form, and on button click event on the form, save the data to your table using INSERT INTO table Statement.

    Code:
    INSERT INTO table_name (column1, column2, column3,...)
    VALUES (value1, value2, value3,...)
    This will fire/increment the Autonumber id only once. Autonumber Field should not be included in the Insert Statement. Access is generating it automatically when new record is inserted.

  4. #4
    sandip is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    1

    Reset Auto Increment Feild in MS Access 2007

    Hello Friends,

    You can reset AUTOINCREMENT field by 'ALTER TABLE' query in MS Access.

    Example:

    alter table tblName alter column clmName AUTOINCREMENT(a,b);

    Here,
    -> 'a' is initial number to start with and
    -> 'b' is increment for each next value..

    Thank you.

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

Similar Threads

  1. Auto Increment Textbox
    By alyon in forum Access
    Replies: 3
    Last Post: 07-15-2011, 06:38 AM
  2. Replies: 5
    Last Post: 11-12-2010, 12:10 PM
  3. Auto Increment by 1 Letter
    By Cinquefoil22 in forum Database Design
    Replies: 4
    Last Post: 07-02-2010, 10:35 AM
  4. Auto increment when the form opens
    By Lynn in forum Forms
    Replies: 13
    Last Post: 04-11-2010, 12:49 PM
  5. Replies: 2
    Last Post: 12-08-2009, 01:19 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