Compacting a password protected database using vba

N

Nick

I'm trying to use the CompactDatabase command to compact a password protected
database but keep getting 'Not a valid password' message. I'm positive I'm
supplying the correct password but am possibly getting the syntax wrong eg.

DBEngine.CompactDatabase "dbtocompact", "newcompateddb", ";pwd=actualpassword"

Anyone know what I'm doing wrong please?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top