Access 2007 compact password via VBA

G

Giovanni Roi

I use this VBA line of code to compact the Access 2007 DB:

Shell("MSACCESS C:\Pippo_be.accdb /Compact ", 3)

How can I add the password that protect the DB in the shell command?

Regards

Giovanni Roi
 

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