Add Delay to Loop

Jonno

Registered User.
Local time
Today, 21:12
Joined
Mar 17, 2003
Messages
74
Hi

Can anyone tell me the best way to add a short time delay to a loop - When a form opens I am trying to create a gradual increment in tone (for aesthetic purposes) using:

Dim counter As Variant

counter = 0
While counter < 255
counter = counter + 1
Me.Detail.BackColor = RGB(counter, counter, counter)


Wend

how can I "time" this function?
 
Jonno,

Search this forum for info on using the Timer Event.

Wayne
 
Will this help?

IMO
 

Attachments

Imo - have you got that in 97 format?
 
Here you are

IMO
 

Attachments

Thanks very much for that - gives me something to work with.
 

Users who are viewing this thread

Back
Top Bottom