Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=blue]
Dim datCurrent As Date
Dim blnCount As Boolean
Private Sub [b]cmdReset[/b]_Click()
datCurrent = #00:00#
[b]lblDisplay[/b].Caption = Format(datCurrent, "Short Time")
End Sub
Private Sub [b]cmdStopStart[/b]_Click()
If Not blnCount Then
[b]cmdStopStart[/b].Caption = "Stop"
Else
[b]cmdStopStart[/b].Caption = "Start"
End If
blnCount = Not blnCount
End Sub
Private Sub Form_Timer()
If blnCount Then
datCurrent = DateAdd("n", 1, datCurrent)
[b]lblDisplay[/b].Caption = Format(datCurrent, "Short Time")
End If
End Sub[/color]
Private Sub cmdReset_Click()
datCurrent = #00:00[b]:00[/b]#
lblDisplay.Caption = Format(datCurrent, "[b]Long[/b] Time")
End Sub
Private Sub Form_Timer()
If blnCount Then
datCurrent = DateAdd("[b]s[/b]", 1, datCurrent)
lblDisplay.Caption = Format(datCurrent, "[b]Long[/b] Time")
End If
End Sub