flaviooooo
Programmer
Hey,
one of our forms contains a button to run several queries, one after the other. In the status bar, the people would see several progressbars start over and over, as the queries flash by. They would not have a clue when this would end.
To make things a bit more convenient, I have tried to ad a homemeade progressbar in the status bar, so they could see exactly when it was going to stop.
I did this as such:
THe progressbar shows the progress as it should, but unfortunately it seems to flash away everytime a new query starts? So half of the time, the status bar is empty and this is probably even more annoying than how it used to be...
Anyone have an idea on how to solve this??
Thanks in advance
Fabian
one of our forms contains a button to run several queries, one after the other. In the status bar, the people would see several progressbars start over and over, as the queries flash by. They would not have a clue when this would end.
To make things a bit more convenient, I have tried to ad a homemeade progressbar in the status bar, so they could see exactly when it was going to stop.
I did this as such:
Code:
Dim countrecs As Long
Dim msg As String
Dim returnvalue As Variant
Dim x As Long
'Creation of progressbar
'Parameters progressbar
countrecs = 4
msg = "UPDATING ..."
Application.SysCmd acSysCmdInitMeter, msg, countrecs
Application.SysCmd acSysCmdUpdateMeter, 1
DoCmd.SetWarnings False
query
query
query
Application.SysCmd acSysCmdUpdateMeter, 2
query
query
query
Application.SysCmd acSysCmdUpdateMeter, 3
query
query
query
Application.SysCmd acSysCmdUpdateMeter, 4
DoCmd.SetWarnings True
returnvalue = SysCmd(SYSCMD_REMOVEMETER)
msg = MsgBox("UPDATE DONE", vbOKOnly)
THe progressbar shows the progress as it should, but unfortunately it seems to flash away everytime a new query starts? So half of the time, the status bar is empty and this is probably even more annoying than how it used to be...
Anyone have an idea on how to solve this??
Thanks in advance
Fabian