DateDiff

J

John

In a table there are three
columns, "ShipDate", "DaysGone", "Return Date". I would
like the "DaysGone" column to be automatically entered as
the difference between the "ShipDate" and the Current Date
IF there is currently no return date. If there is a
return date I would like a null value to be entered in
the "DaysGone" column.
Thanks,
John
 
D

Dan Artuso

Hi,
You would want this as a calculated column in a query:
**untested**
DaysGone: IIf([Return Date] Is Null,DateDiff("d",Date(),[ShipDate]),Null)
 

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