I have created a form that keeps record of a few queries that are ran. One set of queries takes 30 minutes to pull the information. The other takes about 6 minutes.
I managed to use two variables to store the time before and after the queries are finished.
However, I am trying to have a textbox on one of the forms count up (one second at a time) to show the elapsed time. I've tried setting up an 'OnTimer' event with TimerInterval = 1000
I'm handwriting all of this as it's on another station currently...
The form functions when a query is not running.
SetTimeFormat is a function I found through this website or Google that converts a number to Minutes:Seconds or Hours:Minutes
It seems like the OnTimer event stops running when a query is running?
[code=vb]
Private Sub Form_Timer()
Dim dblElapsed As Double
Me.Repaint
dblElapsed = DateDiff("s","" & Me.txtStart & "", "" & Time() & "")
Me.Repaint
Me.txtElapsed = SetTimeFormat(d blElapsed)
Me.Repaint
End Sub
[/code]
I managed to use two variables to store the time before and after the queries are finished.
However, I am trying to have a textbox on one of the forms count up (one second at a time) to show the elapsed time. I've tried setting up an 'OnTimer' event with TimerInterval = 1000
I'm handwriting all of this as it's on another station currently...
The form functions when a query is not running.
SetTimeFormat is a function I found through this website or Google that converts a number to Minutes:Seconds or Hours:Minutes
It seems like the OnTimer event stops running when a query is running?
[code=vb]
Private Sub Form_Timer()
Dim dblElapsed As Double
Me.Repaint
dblElapsed = DateDiff("s","" & Me.txtStart & "", "" & Time() & "")
Me.Repaint
Me.txtElapsed = SetTimeFormat(d blElapsed)
Me.Repaint
End Sub
[/code]
Comment