Hi,
We have a button on a form that we want only certain user levels to see. Users are listed in a table which identifies their level. The majority of the user levels are allowed to see the button, however levels 4 and 7 should not. We're able to accomplish hiding the button from level 4 users, but are unsure how to also hide the button from user level 7.
What do we need to add to the following, so that the button is also hidden from users at level 7?
Private Sub Form_Load()
If DLookup("Level", "USERS", "[USER ID] = '" & CurrentUser & "'") = 4 Then
Me.EVT_button.Visible = False
Else
Me.EVT_button.Visible = True
End If
End Sub
Thank you so much for your assistance with this.
L
We have a button on a form that we want only certain user levels to see. Users are listed in a table which identifies their level. The majority of the user levels are allowed to see the button, however levels 4 and 7 should not. We're able to accomplish hiding the button from level 4 users, but are unsure how to also hide the button from user level 7.
What do we need to add to the following, so that the button is also hidden from users at level 7?
Private Sub Form_Load()
If DLookup("Level", "USERS", "[USER ID] = '" & CurrentUser & "'") = 4 Then
Me.EVT_button.Visible = False
Else
Me.EVT_button.Visible = True
End If
End Sub
Thank you so much for your assistance with this.
L