im tring to get the answer +2 by takeing elasped witch is -22 from offset ?
but its adding it
thanks and happy 4th
Code:Private Sub Command3_Click() Dim start1 As String Dim stop1 As String Dim elasped As String Dim offset As String offset = "24." start1 = "23." stop1 = "01.00" elasped = stop1 - start1 If elasped < 1 Then elasped = offset - elasped MsgBox elasped Else MsgBox elasped End If End Sub




Reply With Quote