Compacting an Access database with VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is a VB.NET Question about using an Access database.
======================
I want to install a VB.NET application that uses an Access database on a
computer that does not have Microsoft Access installed. I want to compact
the database on occasion. If Access was installed I could use something like:

Dim AccessApp As New Access.Application
AccessApp.Application.CompactRepair("C:\Mydatabase.mdb", "C:\Temp.mdb")

Without Access on the computer, this code does not work. Is there an
alternate way to compact the database?
 
Back
Top