Good Afternoon all,
I think I have an easy one here but I am unable to get anything to work.
I am trying to creat a form that when it opens, if it is not the supervisors certain buttons are not visible.
Please see my code below. Sford is me and I can not get the buttons to show when I open the form, let alone when I add all of the other supervisors names.
Any ideas?
I think I have an easy one here but I am unable to get anything to work.
I am trying to creat a form that when it opens, if it is not the supervisors certain buttons are not visible.
Please see my code below. Sford is me and I can not get the buttons to show when I open the form, let alone when I add all of the other supervisors names.
Any ideas?
PHP:
Private Sub Form_Load()
If Environ("username") <> "Sford" Then
''''''Or Environ("username")
'''''''<> "supname" Or Environ("username") <> "supname" Or Environ("username") <> "supname" Or Environ("username") <> "supname" Then
Me.missingemail.Visible = False
Me.pendingemail.Visible = False
Me.Command43.Visible = False
Me.Client_Letter_Mail_Merge.Visible = False
Me.Command67.Visible = False
Me.Command68.Visible = False
Me.Label80.Visible = False
Me.Box81.Visible = False
Me.Box74.Visible = False
Me.Label75.Visible = False
Else
Me.missingemail.Visible = True
Me.pendingemail.Visible = True
Me.Command43.Visible = True
Me.Client_Letter_Mail_Merge.Visible = True
Me.Command67.Visible = True
Me.Command68.Visible = True
Me.Label80.Visible = True
Me.Box81.Visible = True
Me.Box74.Visible = True
Me.Label75.Visible = True
End If
End Sub