Solved

On timer / Time interval

Posted on 2002-06-17
5
406 Views
Last Modified: 2008-03-06
Anybody has a suggestions of how to make a label, text field, or a subform blink? or stay there for a couple seconds and then dissapear?
I know that we can use On timer and time interval for forms but I have never used it and I just need a sample of how to do this..

I take all the suggestions but I mostly would like to know how to make a label blink.. so it will on and off..

Thank you

0
Comment
Question by:G4B
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:lyners
ID: 7084276


Set timer to 1000 (1 second)

Sub OnTimer
     if label.visible = true then
         label.visible = false
     else
         label.visible = true
     end if
end sub


0
 
LVL 1

Expert Comment

by:drivers
ID: 7084957
By using lyners code u also can take two same size labels with different colors. place them on each other. So once then u will hv differnt color combo while blinking. I hv done something same with Bulb lightning picture.

just a suggestion
0
 
LVL 4

Accepted Solution

by:
wesleystewart earned 50 total points
ID: 7088808
You can shrink it even more:

Set timer to 1000 (1 second)

Sub OnTimer
    label.visible = not label.visible
end sub




0
 

Author Comment

by:G4B
ID: 7089073
Thank you for all your help. This worked great!! just they way I wanted. Thank you for all the suggestions I received.

0
 
LVL 4

Expert Comment

by:wesleystewart
ID: 7089114
For further thought...

To make the label disappear after blinking for 30 seconds:

Sub OnTimer
static lngTime as integer
    lngTime = lngTime + 1
    if lngTime < 30 then
      label.visible = not label.visible
    else
      label.visible = False
    end if  
end sub

You can do all sorts of stuff with static variables, which retain their value between calls.  

Wes





0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question