Design Master vs Replica

BradWare

New member
Local time
Today, 11:08
Joined
May 4, 2007
Messages
9
I am very new to replication and I want to know if there is a way to tell (via VBA) that the active database is the Design Master or a Replica. I want to disable certain features in Replicas.
 
The way to check this is to compare the ID of the master with the ID of the current db.
For example:

Code:
if currentdb.ReplicaID = currentdb.DesignMasterID then
debug.print "Designmaster"
else
debug.print "No design"
end if
 
Peter, thanks for such an easy solution!
 

Users who are viewing this thread

Back
Top Bottom