Sorry I forgot to post the SQL statement...
SELECT DISTINCTROW Year(Statistics.StatDate) AS [Year],
Sum(Statistics.Mileage) AS [Timed Miles], Sum(Statistics.[Total Miles]) AS
[Total Miles], Sum(Statistics.ESeconds) AS SumOfESeconds,
Sum(Statistics.TSeconds) AS SumOfTSeconds,
Format(Sum([TSeconds]\3600),"00")
AS THrs, Format(Sum([TSeconds] Mod 3600\60),"00") AS TMin, [THrs] & ":" &
[TMin] AS [Total Hours]
FROM Statistics
GROUP BY Year(Statistics.StatDate)
ORDER BY Year(Statistics.StatDate) DESC;
Billy B said:
I have the following query that is supposed to show total hours but the
hours
show up as 09:187 in the Total Hours: [THrs] & ":" & [TMin] part of the
query.
How can I fix it?
Thank you.