J
jbair via AccessMonster.com
I want to change the text color on a report using the attached code but can't
get it to wor not sure where I'm going wrong
txtOrderDueDate is a long date? 12/08/2009
Private Sub Report_Load()
If Me.txtOrderDueDate.Value <= Date + 2 Then
Me.txtOrderDueDate.ForeColor = RGB(255, 0, 0)
Else
Me.txtOrderDueDate.ForeColor = RGB(0, 255, 0)
End If
End Sub
Thanks!
Jerry
get it to wor not sure where I'm going wrong
txtOrderDueDate is a long date? 12/08/2009
Private Sub Report_Load()
If Me.txtOrderDueDate.Value <= Date + 2 Then
Me.txtOrderDueDate.ForeColor = RGB(255, 0, 0)
Else
Me.txtOrderDueDate.ForeColor = RGB(0, 255, 0)
End If
End Sub
Thanks!
Jerry