Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21197

[RESOLVED] Math using time - NOW to find time elasped

$
0
0
I have two text boxes where I have stored times triggered by command buttons:

Code:

txtTest1.Text = Format(Hour(Now()), "00") & ":" & Format(Minute(Now()), "00") & ":" & Format(Second(Now()), "00")

txtTest2.Text = Format(Hour(Now()), "00") & ":" & Format(Minute(Now()), "00") & ":" & Format(Second(Now()), "00")

Both Text boxes are triggered by separate command buttons and I want to do math on the text box values to establish total elapsed time. The second text box can be a negative time that went past zero.

Any ideas on how I can compare these two text boxes to get the elapsed time?

Thanks in advance

Viewing all articles
Browse latest Browse all 21197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>