Hello,
I want to change the color of the background from a textarea txtTitel.
I want to change it into the color red, but i get always the color black.
The forecolor doesn't change.
I use the following rules:
lngWhite = RGB(255, 255, 255)
lngRed = RGB(255, 0, 0)
lngYellow = RGB(255, 255, 0)
Exit Sub
err_fout:
MsgBox Err.Description & " - " & Err.Number
If Err.Number = 94 Then
Me.txtTitel.BackColor = lngRed
Me.txtTitel.ForeColor = lngYellow
MsgBox "Vul het tekstvak Titel van de drager in", vbOKOnly + vbInformation, strTitel
Me.txtNote = "Geen foto beschikbaar"
End If
The red lines of code says "change the backcolor into red.
But i get always the color black
What kind of a error made i?
I want to change the color of the background from a textarea txtTitel.
I want to change it into the color red, but i get always the color black.
The forecolor doesn't change.
I use the following rules:
lngWhite = RGB(255, 255, 255)
lngRed = RGB(255, 0, 0)
lngYellow = RGB(255, 255, 0)
Exit Sub
err_fout:
MsgBox Err.Description & " - " & Err.Number
If Err.Number = 94 Then
Me.txtTitel.BackColor = lngRed
Me.txtTitel.ForeColor = lngYellow
MsgBox "Vul het tekstvak Titel van de drager in", vbOKOnly + vbInformation, strTitel
Me.txtNote = "Geen foto beschikbaar"
End If
The red lines of code says "change the backcolor into red.
But i get always the color black
What kind of a error made i?