Share via


MakeReplicable Method (JRO)

Access Developer Reference

Makes a database replicable.

Syntax

  
    Replica
    .MakeReplicable([ConnectString] [,ColumnTracking])

Parameters

ConnectString   Optional. A String value specifying the name and path of the database to make replicable. The ConnectString overrides the ActiveConnection property.

ColumnTracking   Optional. A Boolean value that indicates whether to track changes by column or by row. The default value is True. Column-level conflict resolution lets you merge two records and only report a conflict if simultaneous changes have been to the same field. If you frequently have overlapping updates in the same row, setting this option could increase performance.

Remarks

An error will occur if the ConnectString parameter is omitted and the ActiveConnection property has not already been exclusively set. The ActiveConnection property will be set if this method is successful.

Example

This example demonstrates how to create a Design Master with the MakeReplicable method.

  Public Sub MakeRep()

' This code example demonstrates how to use ' MakeReplicable by specifying the ConnectionString parameter. ' NOTE: This connection string does not need to explictly specify ' exclusive connection mode, JRO does this automatically.

Dim repDM As New JRO.Replica ' Make northwind.mdb replicable with record level tracking repDM.MakeReplicable "C:\Program Files\Microsoft Office" & _ "Office\Samples\Northwind.mdb", False

End Sub