MakeReplica Method

    Example    Applies To   

Makes a new replica from another database replica (Microsoft Jet workspaces only).

Syntax

database.MakeReplica replica, description, options

The MakeReplica method syntax has the following parts.

Part Description
database An object variable that represents an existing Database that is a replica.
replica A String that is the path and file name of the new replica. If replica is an existing file name, then an error occurs.
description A String that describes the replica that you are creating.
options Optional. A constant or combination of constants that specifies characteristics of the replica you are creating, as specified in Settings.

Settings

You can use one or more of the following constants in the options argument.

Constant Description
dbRepMakePartial Creates a partial replica.
dbRepMakeReadOnly Prevents users from modifying the replicable objects of the new replica; however, when you synchronize the new replica with another member of the replica set, design and data changes will be propagated to the new replica.

Remarks

A newly created partial replica will have all ReplicaFilter properties set to False, meaning that no data will be in the tables.