I have a volunteer database and having trouble with genuine password protections. I have a "delete" button with this current code under Build Event:
Private Sub delete_Click()
On Error GoTo Err_cmdDelete_Click
DoCmd.SetWarnings False
If MsgBox("Delete this VounteerRecord. Are you sure?", vbQuestion + vbYesNo + vbDefaultButton2, "Delete?") = vbYes Then
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
DepartmentName.SetFocus
End If
Exit_delete_Click:
DoCmd.SetWarnings True
Exit Sub
Err_cmdDelete_Click:
MsgBox Err.Description
Resume Exit_delete_Click
End Sub
Am I able to add a password protect code for admin user? If so, where and how do I put it in here to work properly I already tried and I can't debug it to work properly. Please help =(