Try this, expect bugs, I couldn't test
Function ccGetCustomProperty(strDbName As String, strPropName As String, tblName As String) As Variant
Dim dbs As DAO.Database, cnt As DAO.Container
Dim wsp As DAO.Workspace
Dim doc As DAO.Document, prp As DAO.Property, tbl As TableDef
Const...