shadowfather
Technical User
I have a report that shows a number field with days outstanding. I want it to show the results in differant colours depending on days outstanding. i.e
< 30 Black
>=30 to < 60 Green
>=60 to < 90 Blue
>=90 to < 120 Yellow
> 120 Red
I can get it to work for one colour, but how do I do it for multiple criteria?
I used the following:-
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![Days outstanding] < 30 Then
Me![Days outstanding].ForeColor = vbRed
Else
Me![Days outstanding].ForeColor = vbBlack
End If
End Sub
< 30 Black
>=30 to < 60 Green
>=60 to < 90 Blue
>=90 to < 120 Yellow
> 120 Red
I can get it to work for one colour, but how do I do it for multiple criteria?
I used the following:-
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![Days outstanding] < 30 Then
Me![Days outstanding].ForeColor = vbRed
Else
Me![Days outstanding].ForeColor = vbBlack
End If
End Sub