VBA code/style equivalent

  • Thread starter Thread starter John
  • Start date Start date
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
 
John,

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

Cor
 
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
 
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

Back
Top