I have a small db that I will be having three groups accessing it. I want to restrict each groups access to one or all forms. I would like to have a simple password form to do this. Can this "If" statement used for three different passwords and three different forms?
Private Sub Password_AfterUpdate()
If Me![Password] = "ssulano" Then
DoCmd.OpenForm "ModifyInvoice"
Else
MsgBox "Incorrect password", 16, "Password"
DoCmd.Close
End If
End Sub
Or is there another method of doing this?
sandrao
Private Sub Password_AfterUpdate()
If Me![Password] = "ssulano" Then
DoCmd.OpenForm "ModifyInvoice"
Else
MsgBox "Incorrect password", 16, "Password"
DoCmd.Close
End If
End Sub
Or is there another method of doing this?
sandrao