Hi Guys,
I am having a bit of difficulty,
I am setting up an error check in my coding where if the User does not match 2 criteria they will not be allowed into the database. Can you please help me, I am pulling my hair out of my head over this. I will show what I currently have below, this allows for the first criteria ("Coaching Logger") but ignores the second criteria ("Administrator").
Your help is really appreciated.
kind regards,
Murtadau Gabier
I am having a bit of difficulty,
I am setting up an error check in my coding where if the User does not match 2 criteria they will not be allowed into the database. Can you please help me, I am pulling my hair out of my head over this. I will show what I currently have below, this allows for the first criteria ("Coaching Logger") but ignores the second criteria ("Administrator").
Code:
If DLookup("Permissions", "Employees", "UserName = ('" & Me.txtUserName.Value & "')") <> "Coaching Logger" Or DLookup("Permissions", "Employees", "UserName = ('" & Me.txtUserName.Value & "')") <> "Admininstrator" Then
MsgBox "You do not have permissions for this logger"
Your help is really appreciated.
kind regards,
Murtadau Gabier