Hi,
I have a process which runs lots of slow append queries, so I want to reassure the user of progress, by changing the font colour of labels to green
when the relevant queries have finished. This is the code I'm using
Each query takes about a minute to run, as it gets data from a sharepoint server, but the labels don't turn green one at a time as expected. Instead, I get the spinning wheel until all the queries have run, then all the labels turn green together.
Is there something else I should be doing rather than Me.Repaint ?
Thanks
I have a process which runs lots of slow append queries, so I want to reassure the user of progress, by changing the font colour of labels to green
when the relevant queries have finished. This is the code I'm using
Code:
'Update the older data if that option is selected
If Me.Menu_YearOption.Value = 1 Then
DoCmd.OpenQuery "2-10 Append FY1112"
Me.lbl1112.ForeColor = 32768
Me.Repaint
DoCmd.OpenQuery "2-12 Append FY1213"
Me.lbl1213.ForeColor = 32768
Me.Repaint
DoCmd.OpenQuery "2-14 Append FY1314"
Me.lbl1314.ForeColor = 32768
Me.Repaint
Else
'Do nothing
End If
'Regardless of the option, update last year and this year
DoCmd.OpenQuery "2-16 Append FY1415"
Me.lbl1415.ForeColor = 32768
Me.Repaint
DoCmd.OpenQuery "2-18 Append FY1516"
Me.lbl1516.ForeColor = 32768
Me.Repaint
Each query takes about a minute to run, as it gets data from a sharepoint server, but the labels don't turn green one at a time as expected. Instead, I get the spinning wheel until all the queries have run, then all the labels turn green together.
Is there something else I should be doing rather than Me.Repaint ?
Thanks