Compact Table

smed

Registered User.
Local time
Today, 21:42
Joined
Apr 18, 2002
Messages
50
Does anyone know of a way to compact a linked table ?

Smed
 
You could put this on the On Click event of a command button:

DBEngine.CompactDatabase "C:\My Documents\Nameofdatabase_be.mdb", "C:\My Documents\Nameofdatabase_be1.mdb"
Kill "C:\My Documents\Nameofdatabase_be.mdb"
Name "C:\My Documents\Nameofdatabase_be1.mdb" As "C:\My Documents\Nameofdatabase_be.mdb"

Obviously you'll need to specify the exact file path to the backend.

HTH
 
Last edited:
Thanks, that works perfect ! :)

I have another related question, do you know how to compact data in different format (e.g. dbase, paradox) ?

Smed
 

Users who are viewing this thread

Back
Top Bottom