I have placed a "synchronize" button on my main form but do not
know how to link it to the action of synchronizing to the master
design. I have limited experience with code, but know a little
bit.
First off, you shouldn't be synchronizing on a regular basis with
your Design Master. If you are, that means you're using it for
production editing, which is a bad thing.
The Design Master of a replica set is a special, one-of-a-kind
replica, and you need to take good care of it. Exposing to the
stress of daily editing is not good.
No replica should have fewer than 3 replicas:
1. design master
2. two replicas, each editing in a different location.
Now, you do need to synch with your DM occasionally, in order to
keep it from expiring, but since the default retention period is
1000 days, unless you've changed that, you don't need to do it more
than once a month or so.
Now, to answer your question:
Assuming that you're synchronizing across a wired LAN connection,
it's very easy to do a synch with DAO:
Dim db As DAO.Database
Set db = DBengine.OpenDatabase("[path/name of replica"])
db.Synchronize "[path/name of the *other* replica"
db.Close
Set db = Nothing
That's is.
Put that code behind a command button or call it from a macro and
attach it to a custom menu and you're set.
Of course, that's only the beginning. Things can go wrong during a
synch, and so you should probably have error checking. And you
should probably check for conflicts, since those really need to be
resolved as soon as they appear.
But that's the basics.
If, however, you *don't* have a wired LAN connection (either
wireless LAN or a WAN or Internet connection), then the answer is
substantially more complex.