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.
Private Sub cmdQuery_Click()
'Microsoft Progress Bar Control 6.0 (SP4)
'Microsoft Progress Bar Control, version 5.0 (SP2)
Dim lngTimeToProcess As Long
Dim dteStart As Date
dteStart = Now()
lngTimeToProcess = 5 'secs
Me.ActiveXCtl2.Min = 1
Me.ActiveXCtl2.Max = lngTimeToProcess
DoEvents
Do While DateDiff("s", dteStart, Now()) <= lngTimeToProcess - 1
'Add 1 to avoid 0
ActiveXCtl2.Value = DateDiff("s", dteStart, Now()) + 1
Loop
'run query
End Sub