Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to re-index..

Status
Not open for further replies.

jvega

Programmer
Dec 29, 2000
1
US
Hi everyboby,
Is there a way to re-index and/or compact an Access table inside an application written in Visual Basic?

Thanks in advance, and Happy New Year
 
To compact the database (not a table) use DAO and the code:

DBEngine.CompactDatabase "source database path", "destination database path"

and then rename the database back to original (also make sure that 1. "destination database path" does not exist and 2. the database is not currently in use).


Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top