ACC: DateDiff() Function Returns Incorrect Value (104973)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
This article was previously published under Q104973
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
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.
CAUSE
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.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbprb kbusage KB104973 |
---|
|