B BradWare New member Local time Today, 11:08 Joined May 4, 2007 Messages 9 May 7, 2007 #1 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.
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.
P PeterF Registered User. Local time Today, 20:08 Joined Jun 6, 2006 Messages 295 May 7, 2007 #2 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
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
B BradWare New member Local time Today, 11:08 Joined May 4, 2007 Messages 9 May 7, 2007 #3 Peter, thanks for such an easy solution!