> I have a big loop in the OnOpen event of a form. Inside this loop I want to
> change the color of these boxes as the records are processed. It seems like
[quoted text clipped - 3 lines]
>
> Any ideas?

Signature
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Below is a snippet of the code I am using. The even that fires all of this
code is a button click.
Do While Not rsHolding.EOF
'A bunch of code here using recordsets to update and insert records.
recCounter = recCounter + 1
If recCounter = incCounter Then
strControl = box & boxCounter
Me.Controls(strControl).BackColor = vbBlue
incCounter = incCounter + 3
boxCounter = boxCounter + 1
End If
Loop
msgbox "Import complete"
The boxes that are sopose to turn blue as the loop process don't update
until the above msgbox comes up. The code in that if statement just checks
if the number of records processed equals 3, and then fills in one of the
boxes on the screen for an progress bar effect.
Hopefully this helps a little more.
>> I have a big loop in the OnOpen event of a form. Inside this loop I want
>> to
[quoted text clipped - 10 lines]
> You're probably using the wrong event, but without seeing the code,
> and without more information, I won't try to give any suggestions.
Klatuu - 08 Jul 2005 16:51 GMT
See added code below
> Below is a snippet of the code I am using. The even that fires all of this
> code is a button click.
[quoted text clipped - 6 lines]
> strControl = box & boxCounter
> Me.Controls(strControl).BackColor = vbBlue
Me.Repaint
> incCounter = incCounter + 3
> boxCounter = boxCounter + 1
[quoted text clipped - 24 lines]
> > You're probably using the wrong event, but without seeing the code,
> > and without more information, I won't try to give any suggestions.
Andy G - 08 Jul 2005 17:20 GMT
Ahhhhhh! I tried requery and refresh but not repaint, which makes perfect
sense.
You made my day.
Thanks.
Andy
> See added code below
>
[quoted text clipped - 43 lines]
>> > You're probably using the wrong event, but without seeing the code,
>> > and without more information, I won't try to give any suggestions.