>

MakeReplica Method

Applies To

Database Object.

Description

Makes a new replica based on the current replicable database using the supplied filename.

Syntax

database.MakeReplica replica, description [, dbRepMakeReadOnly]

The MakeReplica Method syntax has the following parts.

Part

Description

database

An existing, replicable Database object variable.

replica

The path and file name to be given the new replica. If replica is an existing filename, then the method fails and returns an error message.

description

Text string describing the replica to be created.


If dbRepMakeReadOnly is supplied, then the replicable elements of the newly created database will not be modifiable.

Remarks

As with most of the replication methods and properties, the database has to be a replicable database for this method to work.

Note

The MakeReplica method can be used only if your application has Microsoft Access with Briefcase Replication installed.