I have an app to compact backend.mdb's automatically overnight. The CompactDatabase method creates a compacted copy with a new name. After doing a Kill of the old (uncompacted) .mdb, I need to find out how to rename the new compacted .mdb back to its old name with VBA code.
CreateDatabase will not work, as I don't want it to open.
Just need to (programmatically) change the name. Found lots of stuff that applies to objects WITHIN a db (Name, ReName, etc) but nothing for an entire db. Even TransferDatabase requires an object parameter (table, report, etc). Likely this is something so simple, it's embarrassing.....
Any help is appreciated!!
-Geno
CreateDatabase will not work, as I don't want it to open.
Just need to (programmatically) change the name. Found lots of stuff that applies to objects WITHIN a db (Name, ReName, etc) but nothing for an entire db. Even TransferDatabase requires an object parameter (table, report, etc). Likely this is something so simple, it's embarrassing.....
Any help is appreciated!!
-Geno