Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Microsoft: Access Tables and Relationships FAQ

How To

Reseed an autonumber field by redapples
Posted: 25 Apr 05

There seem to be quite a lot of posts asking how to this and I was looking to do this myself but did not find the answer here.

A simple SQL statement will do this in Jet4.0 SQL


Dim cnn as ADODB.Connection
Dim StrSQl as string

    cnn.Execute strSQL

I use this for some tables that store temporary data for producing some reports and as such my data is removed prior to running this SQL.  I would not suggest using this on a table where you preserve the data, especially when the counter field is used as a KEY field as I have done.

Back to Microsoft: Access Tables and Relationships FAQ Index
Back to Microsoft: Access Tables and Relationships Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close