View Full Version : how to get text in text box to flash


DT
10-23-2000, 10:36 AM
is it possible to get the text in a text box to flash?

thanks

Atomic Shrimp
10-23-2000, 01:34 PM
Yup, you need to set the timer value for the form to something like 500, then add some code like:

Private Sub Form_Timer()
If Me.MyTextBox.ForeColor = 255 Then
Me.MyTextBox.ForeColor = 0
Else
Me.MyTextBox.ForeColor = 255
End If
End Sub

This will cause the text to alternate between red(255) and black(0) every half second - adjust the timer value in the form's properties to adjust the rate of flash.

Only trouble with this is that it causes Access to refresh the display each time the text flashes and this may cause other objects on the form to flicker slightly

HTH

Mike

DT
10-23-2000, 02:51 PM
Mike,

It took me awhile but I got it to work...Thanks

Derek