Sure. This will delete the currently selected record after the user enters the correct password.
strPass = InputBox("Enter password to confirm deletion of current record.", _
"Password")
If strPass = "12345" Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Else
MsgBox "Invalid password", vbOKOnly, "Error"
End If
HTH,
Eric