Hi all,
I'm having a problem getting a txtbox to display
the font color blue if the value of another specific txtbox is equal to "Computer", if the value is anything else the text color should remain black. However when the form is open all the Asset fields font color is blue. The code I have ( placed in the forms on open event) is below:
Private Sub Form_Open(Cancel As Integer)
If Me.Type = "Computer" Then
Me.Asset.ForeColor = vbBlue
Else: Me.Asset.ForeColor = vbBlack
End If
End Sub
I'm wondering if placing that code on the forms on open event is the wrong place to put it ?
If anyone can help me out that would be great.
Mitch.......
I'm having a problem getting a txtbox to display
the font color blue if the value of another specific txtbox is equal to "Computer", if the value is anything else the text color should remain black. However when the form is open all the Asset fields font color is blue. The code I have ( placed in the forms on open event) is below:
Private Sub Form_Open(Cancel As Integer)
If Me.Type = "Computer" Then
Me.Asset.ForeColor = vbBlue
Else: Me.Asset.ForeColor = vbBlack
End If
End Sub
I'm wondering if placing that code on the forms on open event is the wrong place to put it ?
If anyone can help me out that would be great.
Mitch.......