Iff problem

G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top