Link to home
Create AccountLog in
Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScFlag for Zambia

asked on

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
Avatar of Norie
Norie

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"
Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Norie
Norie

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account