Compact and repair (2003)

RhondaStockton

Board Regular
Joined
Nov 14, 2003
Messages
72
Hi there
I have a user who built a database that opens with a startup form without showing the db window. The users just close the form and then exit Access. The user wants to put a button on the form that can be clicked to compact and repair the database as well as exit the database.
Any ideas?
Thank you
:oops:
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
It is my understanding that it is difficult/complicated to write VBA code to compact & repair the database. However, there is an option that may serve your needs.

Under Tools | Options | General, there is an option to "Compact on Close". If you select this option, the database will automatically be compacted every time it is closed (as long as the person has exclusive right to the DB at that time).

Here is also an article of information:
http://office.microsoft.com/en-us/assistance/HP051874491033.aspx
 
Upvote 0

Forum statistics

Threads
1,221,821
Messages
6,162,157
Members
451,750
Latest member
pnkundalia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top