How to reset identity column in MS Access

前端 未结 3 684
醉梦人生
醉梦人生 2021-01-13 23:46

I have a windows application connected with MS Access 2007 database

It had more than 300 records in Customer Table.

I have deleted

3条回答
  •  春和景丽
    2021-01-14 00:30

    See here. The key is:

    strSql = "ALTER TABLE [" & strTable & "] ALTER COLUMN [" & strAutoNum & "] COUNTER(" & lngNext & ", 1);"
    

    Alternatively, just drop and recreate the table.

提交回复
热议问题