Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make the text in a Caption blink? 2

Status
Not open for further replies.

MikeFL

Programmer
Jul 12, 2002
58
US
Is it possible to have a forms Caption text blink?
And if yes can I also change its color to like RED or something else?

I’m running Access 8.0 (Office 97 Pro).

Example of Caption text:

Me.Caption = _
CurrentUser() & "-" & "Started: " & "" _
& Format$(Now(), "h:nn:ss AMPM, DDDD, MMM d, yyyy")


 
How are yaMikeFL . . .

Using the On Timer & Timer Interval events, you can alternate two forground colors, or alternate the visible property.

TheAceMan [wiggle]

 
MikeFl

this will make the label font color flash red and black

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


set the timer event to about 250, you can set the colors to whatever you want, also you could link it to a text box so that it will only flash if a certain criteria is met
i.e

Private Sub Form_Timer()
If Me.Label1.ForeColor = 0 and Me.Text1 >Date() Then
Me.Label1.ForeColor = 255
Else
Me.Label1.ForeColor = 0
End If
End Sub







Be ALERT - Your country needs Lerts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top