How to set auto increment to 1 ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rhepsi
    New Member
    • Apr 2007
    • 111

    How to set auto increment to 1 ???

    hii all,

    i have created a database with a table with number of fields....in msaccess

    ive set primary key as SNo: and its datatype as auto number...


    How to set the auto increment ????

    For ex:

    i have inserted few records... say 5

    and i deleted one record... when i insert new record nw.... the no. would be 6...

    how to set it to 5...

    1 more thing ... thru ms access can we set the auto increment,,,, not thru any code
    plz help..

    thnx..
    hepsi..
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can't, at least not with autonumbers. But you can do what you want with code.

    Comment

    Working...