Hi all
I am trying to calculate the two different time field. When I entered
in field like 7:00 and 15:00 the result is 8 hrs but when I entered
15:30 the result is also 8 hrs. I am using the following VBA code
Private Sub TimeToDay_After Update()
'Me.TotDay = (DateDiff("n", Me.TimeFromDay, Me.TimeToDay) - 30) / 60
End Sub
Please help me to solve this problem.
Thanks in advance.
Naushad
I am trying to calculate the two different time field. When I entered
in field like 7:00 and 15:00 the result is 8 hrs but when I entered
15:30 the result is also 8 hrs. I am using the following VBA code
Private Sub TimeToDay_After Update()
'Me.TotDay = (DateDiff("n", Me.TimeFromDay, Me.TimeToDay) - 30) / 60
End Sub
Please help me to solve this problem.
Thanks in advance.
Naushad
Comment