Iff problem

R

rms10

I am using =IIf([DateRequired] Is Not Null,DateDiff("d",[DateRequired],[DateReceived]),DateDiff("d",[DateRequired],Date())) in a non bound text box to inform me of the days an item is overdue. For some reason the false condition does not work. Any help would be appreciated.
 
J

Joan Wild

rms10 said:
I am using =IIf([DateRequired] Is Not
Null,DateDiff("d",[DateRequired],[DateReceived]),DateDiff("d",[DateRequired]
,Date()))
in a non bound text box to inform me of the days an item is overdue.
For some reason the false condition does not work. Any help would be
appreciated.

The false portion would mean that DateRequired was null. What would you
expect the DateDiff to return for 'number of days between null and today's
date?
 
Top