Compact an External Database

G

Guest

I have a database that does processing in several BackEnd databases. Is there
some code that I can run in the Processing FrontEnd that will Compact the
BackEnd databases?
 
D

Douglas J. Steele

You can use the CompactDatabase method of the DAO DatabaseEngine.

What I always do is rename the database to something meaningful (like
putting a date in its name, and/or changing the extension to .bak), then
compact that renamed database to the "proper" name. That way, you have a
backup as wrong.
 
B

Bob Hughes

You can use the CompactDatabase method of the DAO DatabaseEngine.

What I always do is rename the database to something meaningful (like
putting a date in its name, and/or changing the extension to .bak), then
compact that renamed database to the "proper" name. That way, you have a
backup as wrong.
I have a little function I created with the help of these news groups
http://www.treeful.com/fCompactBE.txt
It runs automatically in one of my DB's after 6 PM. I believe it is still
functioning properly. But I have not tested it for some time.

Bob
 
G

Guest

I used this method and it works great. Thanks!

Douglas J. Steele said:
You can use the CompactDatabase method of the DAO DatabaseEngine.

What I always do is rename the database to something meaningful (like
putting a date in its name, and/or changing the extension to .bak), then
compact that renamed database to the "proper" name. That way, you have a
backup as wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top