Compact and Repair - Reset Autonumber field (1 Viewer)

Rob601

New member
Local time
Today, 12:57
Joined
Jan 26, 2004
Messages
5
I know it's possible, however unwieldy, to compact and repair a database in code, but I'm looking for a way to reset an autonumber counter and continue running code. Compact and repair won't work because it closes the database. Is there another way to reset the autonumber counter besides compact and repair?

Thanks!
 
Rob601 said:
I know it's possible, however unwieldy, to compact and repair a database in code, but I'm looking for a way to reset an autonumber counter and continue running code. Compact and repair won't work because it closes the database. Is there another way to reset the autonumber counter besides compact and repair?

Thanks!

Could you continue running the code when the db re-opens by setting a flag somewhere before compacting which is checked when the db opens. :)

Rob
 

Users who are viewing this thread

Back
Top Bottom