Afternoon all,
I am trying to create a very simple progress bar that just continually scrolls and resets to show something is working, I have a query that runs off sqlserver that takes around 5 mins to run and make the table, what i wanted to do was just to show that something was happening
Idea was to have a small popup form open with a continual progress bar that uses a simple loop as below on the timer event set to 500 - so it should update every 0.5 sec.
the textbox uses the wingding font so should have presented a scrolling progress bar that when it reaches the end starts again.
I would then close programatically after the query has finished,
but - the form opens, waits 0.5 sec puts in the first "n" and then stops... can anyone see what i am doing wrong??
Many Thanks - Ian
I am trying to create a very simple progress bar that just continually scrolls and resets to show something is working, I have a query that runs off sqlserver that takes around 5 mins to run and make the table, what i wanted to do was just to show that something was happening
Idea was to have a small popup form open with a continual progress bar that uses a simple loop as below on the timer event set to 500 - so it should update every 0.5 sec.
Code:
Private Sub Form_Timer()
Dim ProgBar As String
Dim Counter As Integer
Counter = Counter + 1
ProgBar = ProgBar & "n"
If Counter = 10 Then
Counter = 0 And ProgBar = ""
End If
Me.txt_progress = ProgBar
End Sub
the textbox uses the wingding font so should have presented a scrolling progress bar that when it reaches the end starts again.
I would then close programatically after the query has finished,
but - the form opens, waits 0.5 sec puts in the first "n" and then stops... can anyone see what i am doing wrong??
Many Thanks - Ian