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!

How do you reset an autonum to 0 after deleting all records in a tbl 1

Status
Not open for further replies.

Goot

Programmer
Aug 4, 2005
86
US
I am testing a routine that has a table with an autonum field. I have entered about two dozen records via testing.
How do I reset the autonum to 0. If I remember, If I delete all the records, the next record will be whatever the internal counter is +1.

 
Compact and repair the database.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
WOW simple as that! Great thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top