Compact Table (1 Viewer)

smed

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

Smed
 

DBL

Registered User.
Local time
Today, 14:46
Joined
Feb 20, 2002
Messages
659
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:

smed

Registered User.
Local time
Today, 14:46
Joined
Apr 18, 2002
Messages
50
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

Top Bottom