C
Corey ....
I am trying to put together a TimeSheet, but have ran into a problem.
If th finish time is less than the start time(IE. ends the next working day)
then i get a negative total hours result.
Why does not this line:
((TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) +
(TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value))) * 24
Correct this negative result?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If (TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value)) Then
Label63.Caption = (TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) *
24
If (TimeValue(TextBox9.Value) <= TimeValue(TextBox8.Value)) Then
Label63.Caption = ((TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) +
(TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value))) * 24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Corey....
If th finish time is less than the start time(IE. ends the next working day)
then i get a negative total hours result.
Why does not this line:
((TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) +
(TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value))) * 24
Correct this negative result?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If (TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value)) Then
Label63.Caption = (TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) *
24
If (TimeValue(TextBox9.Value) <= TimeValue(TextBox8.Value)) Then
Label63.Caption = ((TimeValue(TextBox9.Value) - TimeValue(TextBox8.Value)) +
(TimeValue(TextBox9.Value) > TimeValue(TextBox8.Value))) * 24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Corey....