?
Solved

On timer / Time interval

Posted on 2002-06-17
5
Medium Priority
?
420 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 200 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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