PC Review


Reply
Thread Tools Rate Thread

Access DateDiff function

 
 
New Member
Join Date: Dec 2010
Posts: 1
 
      29th Dec 2010
I am having problems getting the DateDiff function working in Access 7. The function will not work if the 2 dates are more than 24 hours apart. I am using a General Date with the following input mask (99/99/9999\ 99:99;0;_) for all my dates. When I create a new field in a query for the DateDiff (Time from Event to Notification of NOC: Format(DateDiff("n",[Event_Date_Time],[Date_Time_NOC_Notified])/1440,"Short Time"), it will not work for dates more than 24 hours apart.

Example:

Event_Date_Time: 12/17/2010 01:00
Date_Time_NOC_Notified: 12/20/2010 05:20

When these dates are applied to the DateDiff function above, it returns 4 hours and 20 minutes, as you can see the function is not taking the date into account. How can I fix this.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DateDiff function RL Microsoft Access Queries 3 18th Jul 2008 04:43 PM
DateDiff Function cmdolcet69 Microsoft VB .NET 16 3rd Jan 2008 10:10 AM
Datediff function =?Utf-8?B?QWxleCBXb29kaGFtcw==?= Microsoft Access Forms 5 24th Aug 2007 10:07 PM
Datediff function Amazing Microsoft Access Queries 2 27th Feb 2006 02:30 PM
DateDiff() Function ltamisin Microsoft Access 2 31st May 2005 12:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:20 PM.