Article ID: 138845
Article Last Modified on 1/19/2007
Option Explicit
Function IsDesignMaster()
' This function determines if the current database is
' the Design Master and returns True if the current
' database is the Design Master and returns False if
' the current database is not the Design Master. The
' function returns Null if the database is not a
' replicable database.
Dim db As DATABASE
Set db = CurrentDb()
If db.DesignMasterID = db.ReplicaID Then
If db.ReplicaID = "" Then ' Check to see if db is replicable.
IsDesignMaster = Null
Else
IsDesignMaster = True
End If
Else
IsDesignMaster = False
End If
End Function? IsDesignMaster()
Keywords: kbhowto kbprogramming kbusage KB138845