Compacting Access Database

sjn78

Well-known member
Joined
May 4, 2003
Messages
255
Location
Australia
Has anyone compacted an access database through an app? I have looked around for ages and havent come across a method that will do it.

VB6 use to do it and I guess .NET should too.

If anyone knows, could you put up a sample for me.

Thanks
 
This is how you do this


sPath = "c:"
If Dir(sPath & "\Temp.mdb") > "" Then Kill(sPath & "\Temp.mdb")
CompactDatabase(workfile, JetEngineTypes.JetCompatible, True) , "c:\Temp.mdb")
 
Back
Top