G
Guest
I'm trying to use the following code from a Front-end (non replicated)
to synchronize two secured replicated databases
Of course I gain access to the front-end using the appropriate workgroup
file, but in the code when I need to do the sync, I run into problems.
What is the syntax for OpenDatabase so I can run the code below (which works
fine with non-secured databases)?
BTW, there is no password, just a username: "L123456" for example
Public Sub SynchronizeCoda(LocalDBandPath As String, NetworkDBandPath As
String)
On Error GoTo Err_Synch
Dim dbLOC As DAO.Database
Dim dbNet As DAO.Database
'Set dbLOC = OpenDatabase(LocalDBandPath)
Set dbLOC = OpenDatabase(LocalDBandPath)
Set dbNet = OpenDatabase(NetworkDBandPath)
Dim frmwait As New Form_Wait
frmwait.OpenForm "Synchonizing..."
dbLOC.Synchronize NetworkDBandPath, dbRepImpExpChanges
End Sub
Thanks
to synchronize two secured replicated databases
Of course I gain access to the front-end using the appropriate workgroup
file, but in the code when I need to do the sync, I run into problems.
What is the syntax for OpenDatabase so I can run the code below (which works
fine with non-secured databases)?
BTW, there is no password, just a username: "L123456" for example
Public Sub SynchronizeCoda(LocalDBandPath As String, NetworkDBandPath As
String)
On Error GoTo Err_Synch
Dim dbLOC As DAO.Database
Dim dbNet As DAO.Database
'Set dbLOC = OpenDatabase(LocalDBandPath)
Set dbLOC = OpenDatabase(LocalDBandPath)
Set dbNet = OpenDatabase(NetworkDBandPath)
Dim frmwait As New Form_Wait
frmwait.OpenForm "Synchonizing..."
dbLOC.Synchronize NetworkDBandPath, dbRepImpExpChanges
End Sub
Thanks