Compact Access Database command:   Return to List

DBEngine.CompactDatabase OriginalDB, CompactedDB

' Just call the compactdatabase method. The OriginalDB variable is the Full Path to the original uncompacted database, and the CompactedDB variable is the full path for the new compacted database.  Must also add a reference to the Microsoft Access 9.0 Library.



Note to Webmaster