G
Guest
Hello,
I have access 2003. I have a form with text boxes and command buttons. I
want to set it up that when you're on a particular text box or command
button, that it turns a different color so it's real apparent what field you
on.
I think I figured out how do achieve this for text boxes using the following
code:
Private Sub Subject_GotFocus()
Me.Subject.BackColor = 8454143
End Sub
Private Sub Subject_LostFocus()
Me.Subject.BackColor = 16777215
End Sub
Can anyone assist me help me with the command buttons. I don't even know
how to change their background color, only their font color.
Thanks in advance.
I have access 2003. I have a form with text boxes and command buttons. I
want to set it up that when you're on a particular text box or command
button, that it turns a different color so it's real apparent what field you
on.
I think I figured out how do achieve this for text boxes using the following
code:
Private Sub Subject_GotFocus()
Me.Subject.BackColor = 8454143
End Sub
Private Sub Subject_LostFocus()
Me.Subject.BackColor = 16777215
End Sub
Can anyone assist me help me with the command buttons. I don't even know
how to change their background color, only their font color.
Thanks in advance.