Guys kindly check this code of mine. Supposed to be Text3.text once inserted into Table1 should give the total work hours but instead, it gives a date, not time.
Private Sub Command1_Click()
Dim Str1$, Str2$, Str3$, Str4$
Text2.Text = DateTime.DateDiff("n", Text1.Text, Label1.Text)
Str1 = Text2.Text \ 60
Str2 = Text2.Text Mod 60
Text3.Text = Str1 & " hours & " & Str2 & " minutes"
Adodc1.RecordSource = "Insert into Table1"
Adodc1.Recordset.Fields("HoursTotal") = Val(Text3.Text)
If Val(Text2.Text) > 480 Then
Label2.Caption = Text2.Text - 480
Str3 = Label2.Caption \ 60
Str4 = Label2.Caption Mod 60
Text4.Text = Str3 & " hours & " & Str4 & " minutes"
End If
End Sub