We help IT Professionals succeed at work.

Failing to compact BE

80 Views
Last Modified: 2017-11-15
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

NorieAnalyst Assistant
CERTIFIED EXPERT

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"
CERTIFIED EXPERT

Author

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
Analyst Assistant
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions