Hey AutoEng - try this in the 'on click' of your command button. It will allow 3 incorrect tries at the password before booting the user out of the application. If you want a different outcome to repeated incorrect attempts then change the 'docmd.quit' to something else. The password itself is contained in the code, in this example it is 'CHRIS' (This is NOT case sensitive).
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim x As Integer
For x = 1 To 3
Dim strInput As String, strMsg As String
strMsg = "Enter Delete Password"
strInput = InputBox(prompt:=strMsg, title:="Password Required", xpos:=2000, ypos:=2000)
If strInput = "CHRIS" Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit Sub
Else
Dim msg, style, title, response
msg = "Password Incorrect"
style = vbOKOnly + vbExclamation
title = "Password error"
response = MsgBox(msg, style, title)
End If
Next x
DoCmd.Quit
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub
------------------------------------------------------------
Hope this helps
Chris