Hello guys
I try to change the color of the buttons. Based on the value of a text box, and used this code but did not succeed to do so.
Any helpCode:Private Sub Form_Load() If Me.text = 1 Then Me.Button1.ForeColor = RGB(170, 0, 0) Else Me.text = 2 Me.Button2.ForeColor = RGB(225, 0, 0) Me.text = 3 Me.Button3.ForeColor = RGB(222, 0, 0) End If End Sub
Thanks in advance