DateDiff returns a value of the "Intervals" tested. Thus:
DateDiff("d", "#3/18/01 10:00:00 AM#, #3/19/01 #11:59:59 PM#
returns the Long/Integer Value "1", so depending on the interval selection, you will only ever get some number of the intervals, so -AS LONG AS THE INTERVALS ARE THE SAME, you can simply add the various intervals. Interperting them as "Time" is somewhat more circutious. Depending on the "Interval", you need to subdivide the total to derive days/hours/minutes/seconds. this is generally approached by dividing the total by the value of the interval (e.g. If you have minutes as the overall interval, you could do an integer divide by 1440 to get the number of days. Then reduce the Sum of the interval by the number of days (* 1440), which gives the Number of days and the remainder of minutes. Divide the remainder by 60 and get the number of hours, with the remainder being minutes ...
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over