Hi
I have a database that includes a report where the date field changes to red and italic if its overdue. The code is:
If Me![TestDate] <= Now Then
Me![TestDate].FontItalic = True
Me![TestDate].FontBold = True
Me![TestDate].ForeColor = vbRed
Else
Me![TestDate].FontItalic = False
Me![TestDate].FontBold = False
Me![TestDate].ForeColor = vbBlack
End If
I need to now change it to include the above but change the field to orange if the item is due in the next 30 days.
So to recap, any items overdue are in red, any items due in the next 30 days are in orange and all other items are in black.
Can anyone help me with this please?
Kev
I have a database that includes a report where the date field changes to red and italic if its overdue. The code is:
If Me![TestDate] <= Now Then
Me![TestDate].FontItalic = True
Me![TestDate].FontBold = True
Me![TestDate].ForeColor = vbRed
Else
Me![TestDate].FontItalic = False
Me![TestDate].FontBold = False
Me![TestDate].ForeColor = vbBlack
End If
I need to now change it to include the above but change the field to orange if the item is due in the next 30 days.
So to recap, any items overdue are in red, any items due in the next 30 days are in orange and all other items are in black.
Can anyone help me with this please?
Kev