Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 10-12-2003, 01:28 AM   #1 (permalink)
Shade
 
Nisses's Avatar
 
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.
Nisses is offline  
Old 10-12-2003, 07:58 AM   #2 (permalink)
I am not permanent.
 
glytch's Avatar
 
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
glytch is offline  
Old 10-12-2003, 10:16 AM   #3 (permalink)
Shade
 
Nisses's Avatar
 
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.
Nisses is offline  
Old 10-12-2003, 02:24 PM   #4 (permalink)
I am not permanent.
 
glytch's Avatar
 
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
glytch is offline  
 

Tags
access, blinking, text


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 02:35 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73