A family of Microsoft relational database management systems designed for ease of use.
You need to append the property to the database's Properties collection, e.g. With a function like this:
Public Sub AddProp(strPropName As String, varPropType As Variant, varPropValue As Variant)
Dim dbs As DAO.Database
Dim prp As DAO.Property
Set dbs = CurrentDb
Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)
dbs.Properties.Append prp
End Sub
You can then call the function like this to create the property and assign it a value:
AddProp "MyProp",dbText,"My value"
And return its current value like this:
? CurrentDb.Properties("MyProp")
My value
And assign a new value to it like this:
CurrentDb.Properties("MyProp") = "My new value"
? CurrentDb.Properties("MyProp")
My new value