Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Computers for Beginners (https://www.askmehelpdesk.com/forumdisplay.php?f=79)
-   -   Computing two dates when one is blank (https://www.askmehelpdesk.com/showthread.php?t=541751)

  • Jan 7, 2011, 10:50 PM
    LTCRAO
    Computing two dates when one is blank
    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
  • Jan 14, 2011, 04:20 PM
    rpray2007
    You might try:

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

    which should provide the difference as number of days.

  • All times are GMT -7. The time now is 12:49 PM.