Well, it's really not that simple...
AllowBypassKey does not exist as a db property. The first time you set it,
you must create it. That's why most examples show an error trap like this
example:
Private Sub ChangeProperty(strPropertyName As String, _
varPropertyType As Variant, bolPropertyValue As Boolean)
Dim db As DAO.Database
On Error GoTo ErrorHandler
Set db = CurrentDB
db.Properties(strPropertyName) = bolPropertyValue
exit_ChangeProperty:
Set db = Nothing
Exit Sub
ErrorHandler:
'If property not found, create it.
If Err = 3270 Then
Dim prpNew As DAO.Property
Set prpNew = db.CreateProperty(strPropertyName, varPropertyType, _
bolPropertyValue, True)
db.Properties.Append prpNew
Else
MsgBox Err.DESCRIPTION, vbCritical
End If
End Sub