Hi!
I have a number field that contains time usage for a certain project at work. The time has been inserted into the field in minutes with no mask og formating.
To sum up time usage I've got this query:
This returns a simple sum of all registered time.
What I need now is for the query to also format the time into hours and minutes.
Any help how to do this would be greatly appreciated!!
Thanks
I have a number field that contains time usage for a certain project at work. The time has been inserted into the field in minutes with no mask og formating.
To sum up time usage I've got this query:
Code:
qry = "SELECT Sum(Time) AS TotTime" & _
" FROM QryProject WHERE " & _
" [District] = 1 "
rs.Open qry, CurrentProject.Connection, adOpenStatic, adLockOptimistic
Me.TotalTime.Caption = rs!TotTime
rs.Close
This returns a simple sum of all registered time.
What I need now is for the query to also format the time into hours and minutes.
Any help how to do this would be greatly appreciated!!
Thanks