This is just a variation on the same...
I handle the Properties.Append in the error handler if the property doesn't exist yet. The message box will tell you what the setting is.
I call this routine from some small label on the double_click event. Then I can set the ByPass on or off quickly and know what the setting is immediately.
[tt]
Private Const PropNotFound As Long = 3270
Public Sub ByPassKeyToggle()
'This Code Disables/Enables the Shift Key
On Error GoTo Error_ByPass
Dim Prp As DAO.Property
Dim db As DAO.Database
Dim blnToggle As Boolean
Set db = CurrentDb()
blnToggle = db.Properties("allowbypasskey"
blnToggle = Not blnToggle
db.Properties("AllowByPassKey"

= blnToggle
blnToggle = db.Properties("AllowByPassKey"
MsgBox "AllowByPass is set to " & blnToggle
Error_ByPass:
If PropNotFound Then
Set Prp = db.CreateProperty("AllowByPassKey", dbBoolean, True)
db.Properties.Append Prp
db.Properties.Refresh
Resume Next
Else
MsgBox "Bypass routine failed due to " & Err.Number & ": " & Err.Description
End If
Exit Sub
End Sub
[/tt]