According to the DAO Reference Guide, the syntax is:
Code:
DBEngine.CompactDatabase olddb, newdb, locale, options, password
With:
- olddb: String identifying the
closed database (name and full path) to be compacted.
- newdb: String identifying the name (name and full path) of the new compacted database. This argument can be the same as olddb.
- All other arguments are optional.