Replicate a database
Posted by: fredometro on
Jan 1st, 2004 |
Filed under: MS-Access
This function replicates a database with another replica, or the master database.
The databases are secured.
Public Function RunReplication(TheMaster, TheRemote, UserName, Password)
Dim db As Database
Dim myDBE As DBEngine
Dim dbMyNewMdb As Database
Dim ws As Workspace
On Error GoTo Err_RunReplication
Set myDBE = New PrivDBEngine
myDBE.SystemDB = DBEngine.SystemDB
myDBE.DefaultUser = UserName
myDBE.DefaultPassword = Password
Set ws = myDBE.CreateWorkspace(”ws”, UserName, Password)
Set dbMyNewMdb = ws.OpenDatabase(TheMaster)
RunReplication = True
On Error Resume Next
dbMyNewMdb.Synchronize TheRemote
If Err <> 0 Then
MsgBox Error$
RunReplication = False
End If
On Error GoTo Err_RunReplication
dbMyNewMdb.Close
Set dbMyNewMdb = Nothing
Exit Function
Err_RunReplication:
MsgBox Error$, vbCritical
RunReplication = False
End Function


December 11th, 2009 at 11:36 pm
Little Nadia
December 11th, 2009 at 11:37 pm
Facials Fever
December 11th, 2009 at 11:38 pm
Veronika Raquel
December 11th, 2009 at 11:39 pm
Lacey Little
December 11th, 2009 at 11:40 pm
Teeny Bopper Club
December 11th, 2009 at 11:41 pm
Just Gay Hardcore
December 11th, 2009 at 11:43 pm
Red Sailor
December 11th, 2009 at 11:44 pm
Eva Luxuria
December 11th, 2009 at 11:45 pm
Busty Dusty Stash
December 11th, 2009 at 11:46 pm
I Shoot My Girl
December 11th, 2009 at 11:47 pm
Sweet Ira
December 11th, 2009 at 11:48 pm
Young Jess
December 11th, 2009 at 11:49 pm
Dual Hardcore
December 11th, 2009 at 11:50 pm
Extreme Bukkake
December 11th, 2009 at 11:51 pm
Glory Hole Bangers
Add A Comment
You must be logged in to post a comment.