I have a table in an Access database with an autonumber field.
When I delete all the records from the table, the autonumber remembers the last number.
Does A
In MS_Access Database, "Truncate is not supported". So we can delete the all records first by "Delete" query.
After delete the records, we can alter the "ID" column starts from 1 by using "Alter" query.
Query:
"Delete * from (Your Table Name);
Alter Table (Your Table Name) Alter Column (Your Column Id) Counter(1,1);"
Using this two queries in single execution we can delete all records and reset the column id starts from 1.