I am creating a button to replicate backend databases from the frontend. Since users may map to the drive with different letter assignments I have tried using the network addresses.
Access thinks the network address is a directory on C drive. I receive the Runtime Error 3044.
Is there a way to use network addresses independent of a specific letter drive?
Private Sub cmdReplicateWithMsp_MilesAve_Click()
Dim dbsMasterReplica As Database
‘Opens the master replica – mimv06siteinfoHESContractorsContractorsA97_be.mdb
Set dbsMasterReplica = OpenDatabase(“mimv06siteinfoHESContractorsContractorsA97_be.mdb”)
‘Sends changes made in each replica to the other – the MSP database replica.
dbsMasterReplica.Synchronize “mieb01siteinfoHESContractorsReplica_2ContractorsA97_be.md”, dbRepImpExpChanges
‘Sends changes made in each replica to the other – the Miles Avenue database replica.
dbsMasterReplica.Synchronize “miesc0siteinfoHESContractorsReplica_1ContractorsA97_be.mdb”, dbRepImpExpChanges
dbsMasterReplica.Close
End Sub