G
Guest
I want to put conditional formatting on a field on my form so that if the
date is less than today the field is red and if the date is between today and
three months from today then it is yellow....otherwise it is just the default.
I was using conditional formatting and setting expressions. The red
condition works where if the date if less than today it appears red. The
problem is with the yellow (if it is between now and three months from
now)...it will do a whole year.
I've tried a lot of different code...as of now this is what I have:
Red......(date is before todays date)
Expression Is:
WED.Value < (Format(Date(),"yyyy/mm/dd"))
Yellow....(btwn today and three months form today)
Expression Is:
WED.Value > (Format(Date(),"yyyy/mm/dd")) And WED.Value <
(DateAdd("m",3,Format(Date(),"yyyy/mm/dd")))
WED being our textbox.
Any ideas would be appreciated.....thanks
date is less than today the field is red and if the date is between today and
three months from today then it is yellow....otherwise it is just the default.
I was using conditional formatting and setting expressions. The red
condition works where if the date if less than today it appears red. The
problem is with the yellow (if it is between now and three months from
now)...it will do a whole year.
I've tried a lot of different code...as of now this is what I have:
Red......(date is before todays date)
Expression Is:
WED.Value < (Format(Date(),"yyyy/mm/dd"))
Yellow....(btwn today and three months form today)
Expression Is:
WED.Value > (Format(Date(),"yyyy/mm/dd")) And WED.Value <
(DateAdd("m",3,Format(Date(),"yyyy/mm/dd")))
WED being our textbox.
Any ideas would be appreciated.....thanks