BrockLanders
Programmer
I'm trying to change the font color of a field based on the value of another field on my report. If ETA is greater than required delivery date, the value in the ETA field should have a font color of red and bold. However, ETA is red regardless if it's greater or not. Below is my code that I placed in the detail format of the report:
Is there some type of syntax that I'm missing?
Thanks
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.ETA > Me.ReqdDeliv_Date Then
Me.ETA.ForeColor = vbRed
Me.ETA.FontBold = True
End If
End Sub
Thanks