This code (and db using the code) will allow correct addition of Hours and minutes existing as string (not date/time) HH:MM

This is the entire code for the database (the form):
Code:
Option Compare Database
Option Explicit
Private Sub cmdCalc_Click()
Dim nHrs As String
Dim nMins As String
nHrs = fcnHours(txtTime1) + fcnHours(txtTime2) + fcnHours(txtTime3)
nMins = fcnMinutes(txtTime1) + fcnMinutes(txtTime2) + fcnMinutes(txtTime3)
Select Case Val(nMins)
Case Is >= 60
nHrs = (nHrs) + Int((nMins / 60))
nMins = (nMins Mod 60)
End Select
Select Case Len(nMins)
Case 0
nMins = "00"
Case 1
nMins = "0" & nMins
End Select
txtTimeTot = nHrs & ":" & nMins
End Sub
Function fcnHours(argHrs)
If InStr(argHrs, ":") = 0 Then
MsgBox "Incorrect time format, use HH:MM", vbOKOnly, " C H E C K I N P U T F O R M A T "
Exit Function
End If
fcnHours = Val(Left(argHrs, InStr(argHrs, ":") - 1))
End Function
Function fcnMinutes(argMins) As Long
Dim lMin As Long
If InStr(argMins, ":") = 0 Then
MsgBox "Incorrect time format, use HH:MM", vbOKOnly, " C H E C K I N P U T F O R M A T "
Exit Function
End If
lMin = Len(argMins) - InStr(argMins, ":")
fcnMinutes = Val(Right(argMins, lMin))
End Function
If you would rather see the working database itself, look here:
TimeElapsed-v1.zip