G
Guest
after looking through this forum i found the code for conditional formatting
and alter it to suit me to the following
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim bgred As Long, bgblack As Long
bgred = RGB(255, 0, 0)
bgblack = RGB(0, 0, 0)
If Me.[3 Mnth Latest].Value < Now() Then
Me.[3 Mnth Latest].BackColor = bgred
Else
Me.[3 Mnth Latest].BackColor = bgblack
End If
End Sub
however when the report opens it does nothing.
i want the 3 mnth latest field to change colour
what am i doing wrong?
and alter it to suit me to the following
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim bgred As Long, bgblack As Long
bgred = RGB(255, 0, 0)
bgblack = RGB(0, 0, 0)
If Me.[3 Mnth Latest].Value < Now() Then
Me.[3 Mnth Latest].BackColor = bgred
Else
Me.[3 Mnth Latest].BackColor = bgblack
End If
End Sub
however when the report opens it does nothing.
i want the 3 mnth latest field to change colour
what am i doing wrong?