I am having a bit of trouble with a piece of code. It checks to see what role a user is and makes various form controls visible depending on the users role. It works fine if it is only one role that will enable the control, but I can't get it to work with multiple roles. For example, I have a user role called "Admin" and a role called "Super User". I want the super user to have use of all the controls and admin only some. I can't seem to add "Admin" and "Super User" together on the the strRole. I hope this makes sense. I have attached the code below.
Code:Private Sub Form_Load() If strRole = "Admin" Then Page89.Visible = True Else Page89.Visible = False End If End Sub