Tech Support Guy banner
Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
Hi :

is it possible to compact a password protected Access 2000 database from code? I tried this:

DBEngine.CompactDatabase "c:\backend.mdb", "c:\backend1.mdb", ";pwd=password"

but I get an "Invalid password" error. Yet the password correctly opened the backend.mdb without a fuss in normal circumstances.

Any help would be greatly appreciated.

Thanks,

Ian
 

·
Registered
Joined
·
11,755 Posts
I don't think you can compact a DB from code unless the code is run from another DB.

See... a DB has to BE closed to compact it.
So it stands to reason that you can't be running code while it's closed...
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top