datediff in conditional formating

lotarugg

Registered User.
Local time
Yesterday, 19:07
Joined
Mar 15, 2011
Messages
34
Hi, I'm trying to use an expression in conditional formatting on a date field. I want the date to turn red if it is more than 18 workdays older than today's date (now).

I'm using

DateDiff("d",[Date_Received],[Now()]) > 18
Not working though
Thanks
 
Change to : DateDiff("d",[Date_Received],Now()) > 18

Remove the [] from around the Now() Function.
 
That works great thanks. I forgot I need another date field to be blank for the expression to be true. I have added this to the end of the expression but no good
AND [Acknowledge_date ] = isnull
 
note that workdays is not the same as days.

I think you will need a purpose built function to determine the number of workdays, and then you can use conditional formatting to test the that number
 
Thanks. What about

DateDiff("d",[ Date_Received],Now()))-(DateDiff("ww",[ Date_Received], Now()))*2)>18 AND ([Date_Acknowledge]) = IsNull
??
 
Get rid of the equals sign and add a space and you don't need the extra parens:

AND [Date_Acknowledge] Is Null
 

Users who are viewing this thread

Back
Top Bottom