Database.Synchronize method (DAO)

Applies to: Access 2013, Office 2013

Synchronizes two replicas. (Microsoft Access workspaces only).

Syntax

expression .Synchronize(DbPathName, ExchangeType)

expression A variable that represents a Database object.

Parameters

Name

Required/optional

Data type

Description

DbPathName

Required

String

The path to the target replica with which database will be synchronized.

ExchangeType

Optional

Variant

A SynchronizeTypeEnum constant indicating which direction to synchronize changes between the two databases.

Remarks

You use Synchronize to exchange data and design changes between two databases. Design changes always happen first. Both databases must be at the same design level before they can exchange data. For example, an exchange of type dbRepExportChanges might cause design changes at a replica even though data changes flow only from the database to DbPathName.

The replica identified in DbPathName must be part of the same replica set. If both replicas have the same ReplicaID property setting or are Design Masters for two different replica sets, the synchronization fails.

When you synchronize two replicas over the Internet, you must use the dbRepSyncInternet constant. In this case, you specify a Uniform Resource Locator (URL) address for the DbPathName argument instead of specifying a local area network path.

Note

You can't synchronize partial replicas with other partial replicas. See the PopulatePartial method for more information.