ODE97: Correct Syntax for Internet Synchronization Using DAOID: Q170595
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
This article demonstrates how to synchronize database replicas over the
Internet using data access objects (DAO). This article assumes you have
already installed and configured Microsoft Replication Manager on your
Internet server to synchronize replicas over the Internet.
For more information about configuring Replication Manager on your Internet
server, search the Microsoft ODE Tools Help Index for "Replication Manager,
Internet or intranet servers."
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to the "Building
Applications with Microsoft Access 97" manual.
You can use Synchronize method of DAO for synchronizing database replicas.
The Synchronize method uses the following syntax:
<database object>.Synchronize pathname, [exchange]
Sub SyncReplicas()
Dim db As Database
Set db = CurrentDb()
db.Synchronize "http://MyServer", dbRepSyncInternet
End Sub
db.Synchronize "<http://MyServer", dbRepSyncInternet + dbRepExportChanges
For more information about the Synchronize method, search the Help Index
for "Synchronize method," or ask the Microsoft Access 97 Office Assistant.
For more information about synchronizing replicas over the Internet, please
refer to the Microsoft Jet 3.5 Replication White Paper. See the following
article in the Microsoft Knowledge Base for instructions on obtaining the
Microsoft Jet 3.5 Replication White Paper:
Q164553 ACC97: Jet 3.5 Replication White Paper Available on MSL
Keywords : kbcode GnlOthr MdlDao
Version : 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 22, 1999