Failing to compact BE

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
LVL 3
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScDirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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"
0
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScDirectorAuthor Commented:
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
0
NorieAnalyst 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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.