ACC2000: Initial Synchronization Is Bidirectional with Internet or Indirect Synchronization (280378)



The information in this article applies to:

  • Microsoft Access 2000

This article was previously published under Q280378

SYMPTOMS

When you perform an initial synchronization of a remote Microsoft Access replica database using Microsoft Jet Replication and you are using either Internet or Indirect synchronization, all data and design changes are sent in both directions, even if the dbRepExportChanges or dbRepImportChanges flag is used.

CAUSE

Internet and indirect synchronization use "message-based" replication. Message-based replication forces an exchange of user data whenever there are pending system table changes in a database. During the initial synchronization, Microsoft Jet replication needs to update system tables in both the remote replica and the hub replica to update the location information of the remote replica, which forces a two-way user data exchange because message-based replication is being used.

RESOLUTION

To enforce a strict, one-way exchange of user data at all times, you must use direct synchronization.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Set up a computer with Internet replication, and then create a hub replica with one user-defined table that contains no records.
  2. Add the following code to a module in the hub replica:
    Sub SyncReplica()
       Dim db As Database
       Set db = CurrentDb()
       db.Synchronize "http://MyServer", dbRepSyncInternet + dbRepImportChanges
    End Sub
    					
  3. Make a copy of the hub replica on a remote computer, and then add a record to the user-defined table in both the hub replica and the remote replica.
  4. Synchronize the remote replica by running the SyncReplica method that you created in step 2 in the remote replica.
Note that after the replication is complete, you see both records that you added in both the hub replica and the remote replica, even though you used the dbRepImportChanges flags to indicate a one-way exchange of data.

Modification Type:MinorLast Reviewed:7/15/2004
Keywords:kbprb KB280378