If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to delete table contents and reset autonumber counters
When I delete my table contents (but not the table definitions) the auto
number counters are not reset. Is there a way to reset them? Thanks, Siegfried |
#2
|
|||
|
|||
Simplest way is to compact the database after deleting all records. That
should work in all versions of Access: if not, apply the latest service packs for Office and JET, from: http://support.microsoft.com/gp/sp If you need to do it programmatically, it is possible in Access 2000 and later to set the Seed of the Column in the Table, using the ADOX library. There's a (rather involved) example of how to use these properties in this link: http://allenbrowne.com/ser-40.html -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Siegfried Heintze" wrote in message ... When I delete my table contents (but not the table definitions) the auto number counters are not reset. Is there a way to reset them? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table autonumbers - possible reset? | Bob | General Discussion | 2 | September 16th, 2004 11:03 AM |
Reset Textbox Contents | Andrew Wilkins | Using Forms | 1 | August 19th, 2004 03:00 PM |