Hello,
I am try to get the number of days only from two dates in an Access query. I need the days to calculate depreciation for an asset. It works fine in Excel but I am getting the wrong number in Access.
DATEDIF(C9,$B$4,"md" = 5 Days
Date1 = 7/26/2008
Date2 = 3/31/2011
DateDiff("d",[DateAcquired],[DepreciationDate]) = 1344
3 years 8 months 5 days
I need Access to give me the 5 days.
Any help would be appreciated.
Thanks
Tony
I am try to get the number of days only from two dates in an Access query. I need the days to calculate depreciation for an asset. It works fine in Excel but I am getting the wrong number in Access.
DATEDIF(C9,$B$4,"md" = 5 Days
Date1 = 7/26/2008
Date2 = 3/31/2011
DateDiff("d",[DateAcquired],[DepreciationDate]) = 1344
3 years 8 months 5 days
I need Access to give me the 5 days.
Any help would be appreciated.
Thanks
Tony