VBA code/style equivalent

J

John

Hi

I am synchronising one access db with its master via the below code;

Dim dbSynch As DAO.Database

Set dbSynch = DBEngine(0).OpenDatabase(<path local>)
dbSynch.Synchronize <path remote>

dbSynch.Close
Set dbSynch = Nothing

How can I do this in vb.net/ado.net?

Thanks

Regards
 
C

Cor Ligthert[MVP]

John,

There should be very rare circumstances that you want this.
Use AdoNet

Cor
 
J

Jesús López

There is no built in support for Access replication in ADO.NET. Therefore,
to syncrhonize two o more Access databases from VB.NET code you must use DAO
or JRO (Jet Replication Objects) through COM Interop.

Regards
 
G

Guest

Hi

I am synchronising one access db with its master via the below code;

Dim dbSynch As DAO.Database

Set dbSynch = DBEngine(0).OpenDatabase(<path local>)
dbSynch.Synchronize <path remote>

dbSynch.Close
Set dbSynch = Nothing

How can I do this in vb.net/ado.net?


You can look at using Microsoft Synchronization Services for ADO.NET. It's
currently in CTP1.
 

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