Compacting an Access database with VB.NET

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?
 

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

Top