Conditional formatting behaving badly...

Nightowl4933

Tryin' to do it right...
Local time
Today, 06:47
Joined
Apr 27, 2016
Messages
151
I have a report that shows a calculated date field (a future expiry date), either 'x' years from a specific date or from a defined date.

I'm trying to highlight the calculated date where it is 12 months before today, using the following Conditional Formatting rule:

Condition 1: Field Value Is - greater than or equal to - Now()-365

The bizarre thing is only some of the dates are highlighted, as shown in the attached screenshot.

Any ideas, please?
 

Attachments

  • Screen Shot 2016-06-28 at 20.44.26.png
    Screen Shot 2016-06-28 at 20.44.26.png
    21.8 KB · Views: 95
you don't use date math that way in access,
use:
DateAdd(...) or DateDiff(...)

DateAdd("m",-12,date())
DateAdd("d",-365,date())
 
you don't use date math that way in access,
use:
DateAdd(...) or DateDiff(...)

DateAdd("m",-12,date())
DateAdd("d",-365,date())

Sorted, thank you :D
 

Users who are viewing this thread

Back
Top Bottom