Hi all,
I have a form which captures Environ("USERNAME") as String, what I want to be able to do is then be able to use the username value in an if statement to change the colour of all the text in the form.
So far I have:
Private Sub Form_Load()
Dim strUser As String
strUser = Environ("USERNAME")
If strUser = "A" Then me.??? = 123467
End Sub
I can enter specific object names after the me. to set the colour for that object but this will take a LONG time for all forms fields.
Thanks in advance.
I have a form which captures Environ("USERNAME") as String, what I want to be able to do is then be able to use the username value in an if statement to change the colour of all the text in the form.
So far I have:
Private Sub Form_Load()
Dim strUser As String
strUser = Environ("USERNAME")
If strUser = "A" Then me.??? = 123467
End Sub
I can enter specific object names after the me. to set the colour for that object but this will take a LONG time for all forms fields.
Thanks in advance.