Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replicating ODBC database

Status
Not open for further replies.

mur3x

MIS
Sep 8, 2003
31
LK
Hi i found the following code in MSDN where Jet Replication is used to sysnchronize between two Access databases. I want to use ODBC connection for the second database (FY96.mdb).i want to know how can i use this code with a ODBC connection.

Code:
Sub JROTwoWayDirectSync()

   Dim repMaster As New JRO.Replica

   repMaster.ActiveConnection = ".\NorthWind.mdb"

   ' Sends changes made in each replica to the other.

   repMaster.Synchronize ".\FY96.mdb", jrSyncTypeImpExp, _
      jrSyncModeDirect

   Set repMaster = Nothing

End Sub

thanks...
Mur.
 

Just curious: Why do you want to use ODBC for a Jet mdb instead of using jet directly?
 
Thnx for your reply. No i want replicate a SQL server Database and a Access database. I want to create a DSN for the SQl server database and replicate it thru the Access Database. Will it be possible..How shud i modify the connection to ODBC?.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top