Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting AUTONUMBER to Reset!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a serious issue. I have my database linked by autonumbers and for testing purposes I went through a couple of thet ables seperately and just added some data, now everything is out of sink. I have tried deleting the autonumber field, saving it and readding it again but the autonumber always returns back to the original number!!! How do I get it start back at 1????? Thanks
 
Delete all data in the table and compact the database.
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
There is an SQL command "Alter" which will do it, I believe, provided you have JET4.

ALTER TABLE tablename ALTER COLUMN columnname COUNTER (1,1) is the syntax, I believe.

Haven't tried it but the book says so.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top