GK222
Create 2 buttons( i have a password that makes them visible but you may just want to strategicly place them in an admin section of your database)
Private Sub Command61_Click()
Dim db As Database
Dim prp As Property
Set db = CurrentDb
Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, False)
db.Properties.Append prp
MsgBox "System Lockdown, the shift key has been blocked"
DoCmd.Close
DoCmd.OpenForm "MainForm", acNormal
End Sub
Private Sub Command62_Click()
Dim db As Database
Set db = CurrentDb
db.Properties.Delete "AllowByPassKey"
db.Properties.Refresh
MsgBox "System open, the program is currently unlocked"
DoCmd.Close
DoCmd.OpenForm "MainForm", acNormal
End Sub
Good Luck
Zero Anarchy