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

Avatar of undefined
Last Comment
Norie

8/22/2022 - Mon
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"
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
Norie

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy