This is the code that I have now. It just hides a button from anyone that is not on the admin list. Right now I am defining it in the code... But I know that there must be a new way to do it. Any help is appreciated.
Thanks,
PROXI
Code:
Private Sub Mainhide()
Dim strResponse As String
Dim admin1 As String
Dim admin2 As String
Dim admin3 As String
Dim admin4 As String
admin1 = "u183376"
admin2 = "u177894"
admin3 = "u180329"
admin4 = "u148799"
strResponse = Environ("username")
If strResponse = admin1 Or _
strResponse = admin2 Or _
strResponse = admin3 Or _
strResponse = admin4 Then
Form_Main.Report.Visible = True
Else
Form_Main.Report.Visible = False
End If
End Sub
Thanks,
PROXI