Connecting Tech Pros Worldwide Help | Site Map

How to compact the database in VBA?

  #1  
Old November 13th, 2005, 01:41 PM
swingingming
Guest
 
Posts: n/a
I read in some of the messages that 'autonumber' will reuse the deleted
number after compacted. How can we do it in code?
Thanks. ming

  #2  
Old November 13th, 2005, 01:41 PM
pietlinden@hotmail.com
Guest
 
Posts: n/a

re: How to compact the database in VBA?


No, it only picks up at the last number. And if you're looking for
autonumbers not to have gaps, you'll have to roll that yourself. That
question has been asked millions of times. The standard response is
that an autonumber field guarantees *uniqueness*, nothing more.
Besides, it's a meaningless number - just a way of relating records in
one table to records in another.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 Unable to Compact Database ISUTri answers 5 March 6th, 2008 10:45 PM
How to compact the database in VBA? swingingming answers 0 November 13th, 2005 01:41 PM
Compact Database on Close - Good Idea or Not? Susan Bricker answers 5 November 13th, 2005 10:06 AM
Auto Capitalization in VBA Editor - WHY? Corepaul answers 6 November 12th, 2005 03:41 PM