'*****禁用Shift键*****
Function CloseBypassKey()
Dim P
On Error Resume Next
Set P = CurrentDb.CreateProperty _
("AllowBypassKey", DB_BOOLEAN, False)
CurrentDb.Properties.Append P
CurrentDb.Properties("AllowBypassKey") = False
'If MsgBox("你要禁用Shift键吗?", vbYesNo + vbQuestion + vbDefaultButton2, "提示") = vbYes Then
' End If
End Function
'*****启用Shift键*****
Function OpenBypassKey()
Dim P
On Error Resume Next
Set P = CurrentDb.CreateProperty _
("AllowBypassKey", DB_BOOLEAN, True)
CurrentDb.Properties.Append P
CurrentDb.Properties("AllowBypassKey") = True
If MsgBox("你要启用Shift键吗?", vbYesNo + vbQuestion + vbDefaultButton1, "提示") = vbYes Then
End If
End Function