I am working to create db replica of Access 2000 db with JRO and ADO 2.8 in VB6.
The code sample from MSDN has a problem.
This is the reference page from MSDN on JRO:
Here is their example from this page:
The following code shows how to create a full, read/write replica of an existing Design Master or replica by using JRO:
leDBPath As String, _
strDescription As String) As Integer
Dim repReplicableDB As New JRO.Replica
Dim strNewReplicaDBPath As String
strNewReplicaDBPath = GetReplicaName(strReplicab
ection = strReplicableDBPath
ica strNewReplicaDBPath, strDescription, _
Set repReplicableDB = Nothing
For example, to create a new replica of the NorthwindDM.mdb Design Master, you would use the following line of code:
MakeNewReplica "c:\NorthwindDM.mdb", "c:\NwindReplica.mdb"
THE PROBLEM: no where in/on MSDN is the referenced function GetReplicaName() defined -- it appears in the above code line " strNewReplicaDBPath = GetReplicaName(strReplicab
. I cannot figureout the CreateReplica method, or at least I am not making it work.... the use of "strDescription" is unclear.
Urgent help needed. Anyone have a working routine with JRO to create replica of Access DB design master?