Hi there,
I have the following piece of code on a command button on a form:
The label is not visible when I execute the code via command button. However, if I step through the code, the label works like a charm. I've added Me.Repaint, DoEvents etc, but to no avail. Could it be that the code is running too quickly for it to appear?
Thanks in advance.
I have the following piece of code on a command button on a form:
Me.lblRefresh.Visible = True
Dim ctl As control
For Each ctl In Me.Controls
If ctl.Tag = "RefreshStats" Then
ctl.Requery
End If
Next ctl
Me.lblRefresh.Visible = False
The label is not visible when I execute the code via command button. However, if I step through the code, the label works like a charm. I've added Me.Repaint, DoEvents etc, but to no avail. Could it be that the code is running too quickly for it to appear?
Thanks in advance.