Failing to compact BE

Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc used Ask the Experts™
on
As previously advised to use the command prompt to compact the back end,below is the actual patch where my BE is:

C:\Users\chris\Desktop\Data base 2016\IFRS\TestingC:\accdb

(1) What do I need to do to start compacting it?
(2) Will it not ask for the password to open it since it is password protected, temporally the compact close is still on in the back , this means that if I open it and close it, it will start compacting .

Kindly use the above path to demonstrate how it is done !

Many thanks to you all

Regards

Chris
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
NorieAnalyst Assistant

Commented:
Chris

First,  what's the name of the database?

As for a password, you can supply that via the command prompt with the '/pwd' switch.

PS If the path to the database and/or the filename for the database contain spaces you'll need to use quotes.

So it might look something like this, which is currently untested.

msaccess.exe /pwd yourpassword /compact "C:\Users\chris\Desktop\Data base 2016\IFRS\Testing.accdb"
But where do I put it ? is it on dose prompt example:

Cmd

Then does it mean that I have to supply a password each time I want to compact the BE?

Regards

Chris
Analyst Assistant
Commented:
Chris

This would be run from the command prompt, or you could put it in a batch file, put that file on the desktop and run it from there.

Regarding passwords, you would have to supply the password but you shouldn't be prompted for it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial