G
Guest
I am trying to use conditional formatting to colour code a last contact date
field (txtLastContact) as follows:
Date falls within the last 6 months - green
Date is between 6 months and a year ago - orange
Date is more than 1 year ago - red
My 3 'Expression Is' conditions are as follows:
1) [txtLastContact]>=DateAdd("m",-6,Date())
2) [txtLastContact]<DateAdd("m",-6,Date()) And
[txtLastContact]>DateAdd("y",-1,Date())
3) [txtLastContact]<=DateAdd("y",-1,Date())
Expression 1 appears to work, but if the date is more than 6 months old it
goes red (when I am expecting it to be orange). I had also tried 'Field Value
Is' and 'Between' for the 2nd condition, but to no avail.
Thanks
field (txtLastContact) as follows:
Date falls within the last 6 months - green
Date is between 6 months and a year ago - orange
Date is more than 1 year ago - red
My 3 'Expression Is' conditions are as follows:
1) [txtLastContact]>=DateAdd("m",-6,Date())
2) [txtLastContact]<DateAdd("m",-6,Date()) And
[txtLastContact]>DateAdd("y",-1,Date())
3) [txtLastContact]<=DateAdd("y",-1,Date())
Expression 1 appears to work, but if the date is more than 6 months old it
goes red (when I am expecting it to be orange). I had also tried 'Field Value
Is' and 'Between' for the 2nd condition, but to no avail.
Thanks