is there TRUNCATE in Access?

后端 未结 9 1532
滥情空心
滥情空心 2021-01-04 03:19

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

9条回答
  •  日久生厌
    2021-01-04 03:46

    There's no truncate in MS Access as far as I know but you can resolve the auto-number issue remembering the last number after delete. There's a way in MS Access to start with 1 after deleting records with auto-number field. If you're using ms-access-2007 you can find the Compact and Repair Database feature by selecting Manage, located under the Office Button. You can also have your database compact and repair itself every time it is closed, by activating the Compact on Close option. If you would like to set this option, you can find it in the Access Options for the Current Database.

    enter image description here

提交回复
热议问题