Hi All,
I need to make a command button visible to certain users based on a multiple user levels in a table.
I currently am using the following code successfully to make the button visible to one user level:
If DLookup("Level", "USERS", "[USER ID] = '" & CurrentUser & "'") = 9 Then
Me.Command180.Visible = True
Else
Me.Command180.Visible = False
End If
How can I amend this so levels 2,15, and 32 can also see the button?
Thank you!!
I need to make a command button visible to certain users based on a multiple user levels in a table.
I currently am using the following code successfully to make the button visible to one user level:
If DLookup("Level", "USERS", "[USER ID] = '" & CurrentUser & "'") = 9 Then
Me.Command180.Visible = True
Else
Me.Command180.Visible = False
End If
How can I amend this so levels 2,15, and 32 can also see the button?
Thank you!!