M
MStrider
how the hell do I change the back colour of a textbox on the fly using vba?
I am trying this, but the property of backcolour doesn't seem to work in
reports
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If IsNull(Me.mailer_number) Then
Me.TXT_mmail = ""
Me.TXT_mmail.backcolor = RGB(0, 0, 0) - this bit doesn't work
Else
Me.TXT_mmail = "MMAIL"
Me.TXT_mmail.backcolor = RGB(255, 255, 255) - this bit doesn't work
End If
End Sub
Thanks for your help!
I am trying this, but the property of backcolour doesn't seem to work in
reports
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If IsNull(Me.mailer_number) Then
Me.TXT_mmail = ""
Me.TXT_mmail.backcolor = RGB(0, 0, 0) - this bit doesn't work
Else
Me.TXT_mmail = "MMAIL"
Me.TXT_mmail.backcolor = RGB(255, 255, 255) - this bit doesn't work
End If
End Sub
Thanks for your help!