Hi Danie,
here is an example for 567 minutes
Private Sub Test1()
Dim strHoursAndMins As String
strHoursAndMins = 567 \ 60 & Format$(567 Mod 60, "\:00")
Debug.Print strHoursAndMins
End Sub
Here's an example to use in a query.
The table has a field called MinsWorked and a field called HrsWorked.
TotHrsMins: (Sum(Nz([MinsWorked],0))+Sum(Nz([HrsWorked],0))*60)\60 &
Format(Sum(Nz([MinsWorked],0)) Mod 60,"\:00")
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
Danie said:
I have used a DateDiff and have the result in mins. How do I convert it to
hrs and mins.
Thanks,
Danie