Solved

create replica from mdb on server...

Posted on 2009-07-09
2
257 Views
Last Modified: 2015-01-05
I have a mdb in \\dir_server\mymdb.mdb
Now... with vb6 calssic ho to create a replica of the mdb stored on server in a pc dir similar c:\mylocal_dir\my_replica.mdb.
Naturally before to create a replica controll if the mdb existis in c:\mylocal_dir\my_replica.mdb

Tks.
0
Comment
Question by:luca2009
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 24829982
By "replica" do you mean you'd implemented Replication on the database?

Or do you just want to make a copy?

If you just want to make a copy, use standard File I/O methods:

FileCopy "source" "destination"

If you are using replication and want to make a true Replica, you'll need to use the Jet Replication Objects (JRO) and work with them ... needless to say, that's a LOT more complex than FileCopy.
0
 

Author Comment

by:luca2009
ID: 24830000
No copy but Replication with JRO... i need a code
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question