Log in

View Full Version : Computing two dates when one is blank


LTCRAO
Jan 7, 2011, 10:50 PM
Can someone please help me! I want to compute in an Access database how many days an item has been in storage to appear in my Total days. These are my fields.
1. Arrival date =when the item arrived in storage
2. Dispatch date = when the Item was picked-up
3. Total days = The number of days an Item has been in storage before it was dispatch. If it has not been dispatched (dispatched date is blank) I want to compute today's date minus the arrival date.
Thank you
V/r
Rich

rpray2007
Jan 14, 2011, 04:20 PM
You might try:

=DateDiff("d", [OrderDate], [ShippedDate])

which should provide the difference as number of days.