10-12-2003, 01:28 AM | #1 (permalink) |
Shade
Location: Belgium
|
Blinking text in Access
Does anybody have any idea how to get a blinking effect on a Label on a form in MS Access?
I believe it could work somehow through the standard timer that each form has, but I don't know how to connect to that timer
__________________
Moderation should be moderately moderated. |
10-12-2003, 07:58 AM | #2 (permalink) |
I am not permanent.
Location: Tennessee
|
Access has built-in VB editor doesn't it? (I'm pretty sure it does). Anyway, bring that up, add a timer control, double-click it to bring up your code (don't forget to set your timer interval).
In your code window for your timer control, type this: Private Sub Timer1_Timer() Label1.Visible = True * Label1.Visible = False End Sub Of course, you'll probably have to insert your names for your timer and label controls (I just used timer1 and label1). That should do it! Let me know if you need any more help. I'm no expert, but I can do a few things.
__________________
If you're flammable and have legs, you are never blocking a fire exit. - Mitch Hedberg |
10-12-2003, 10:16 AM | #3 (permalink) |
Shade
Location: Belgium
|
actually, the built-in vb-editor doesn't allow you to put in a timer of your own. You have to use the timer that's somewhat hidden/supplied in every form, so you only have 1 timer to work with
But what you posted there Label1.Visible = True * Label1.Visible = False is that a way to automatically alternate between actions for a timer? I somehow worked around it by going with the built in timer doing it conditionally If (flag) Label1.Visible = True Else Label1.Visible = False is the condensed form. You mean with a simple asterisk you alternate automatically? Cool, lemme try also, thanks alot for your help
__________________
Moderation should be moderately moderated. |
10-12-2003, 02:24 PM | #4 (permalink) |
I am not permanent.
Location: Tennessee
|
Well, it works for me in VB, who knows what it'll do in Access, although I would think they would do the same thing. This was actually an assignment for me last week in my programming class, except they wanted the text color to change randomly (so the code for that would have been label1.forecolor = rgb(255, 255, 255) * rnd).
You actually helped me, because I had been wondering how to do blinking text since that assignment, but was just too lazy to do it by myself. I hope any information I've given has been helpful.
__________________
If you're flammable and have legs, you are never blocking a fire exit. - Mitch Hedberg |
Tags |
access, blinking, text |
|
|