ACC: DateDiff() Function Returns Incorrect ValueID: Q104973
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you use the DateDiff() function on a large interval where the time
periods are specified in minutes or seconds, the result is not correct.
The DateDiff() function returns a long integer. If the result is greater than the allowed range for long integers (-2,147,483,648 to 2,147,483,647), Microsoft Access truncates the value and returns the truncated value.
x=#12-31-100#
y=#12-31-9999#
? (y-x)*24*60
Additional query words: date
Keywords : kbusage ExrOthr
Version : 1.0 1.1 2.0 7.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 27, 1999