Hi Guys,
i'm trying to write a piece of code which simply works out if one time is longer that another. Say for example a one variable is 15 minutes ("00:15:00"), and another is 16 mins then i would like to be able to workout that the second is longer and is 1 minute longer.
I've tried :
and it ALWAYS says it's shorter.
Any Ideas?
Thanks
David
i'm trying to write a piece of code which simply works out if one time is longer that another. Say for example a one variable is 15 minutes ("00:15:00"), and another is 16 mins then i would like to be able to workout that the second is longer and is 1 minute longer.
I've tried :
Code:
If dtTime > "00:15:00" Then
MsgBox "Longer than 15 mins"
Else
MsgBox "Shorter than 15"
End If
Any Ideas?
Thanks
David