RE: Make a label "flash" on a form
- From: "Sprinks" <Sprinks@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 10:56:04 -0700
Hi, Matthew.
I can't help you understand WHY it's not working, but with the Form's Timer
Interval property set to 3000, the following code in the OnTimer event
procedure worked flawlessly on a test form:
MyLabel.Visible = Not MyLabel.Visible
If you've never created a VBA subroutine before, click on the ellipsis to
the right of the OnTimer event property, and choose Code Builder. Access
will create the shell of a routine for you. Insert the code above between
the Sub and End Sub lines, changing the two instances of "MyLabel" to the
name of your label.
Hope that helps.
Sprinks
"Matthew Reed via AccessMonster.com" wrote:
>
> I have a switchboard that has a label on it that I want to flash on the
> screen, meaning visible for a second, then invisible, visible, etc.
>
> I have a "TestVis" macro that runs on the On Timer property, with the Timer
> Interval set to 3000 (so every 3 seconds).
>
> The TestVis macro should make the label visible if it isn't, then make it
> invisible three seconds later. I'm using a SetValue action to set the
> Visible property of the label to yes or no.
>
> If I set the Visible property of the label to Yesin Design View, then open
> the form, it makes it invisible -- ONCE.
> If I set the Visible property of the label to No, then open the form, it
> makes it visible -- ONCE.
>
> It's as if the property isn't getting saved...Access still thinks it's
> visible if it's not. I tried a Save Form action, no luck.
>
> Any thoughts? I'm missing something about the way control properties can be
> set and tested...
>
>
> --
> Message posted via http://www.accessmonster.com
>
.
- Follow-Ups:
- RE: Make a label "flash" on a form
- From: Matthew Reed via AccessMonster.com
- RE: Make a label "flash" on a form
- References:
- Make a label "flash" on a form
- From: Matthew Reed via AccessMonster.com
- Make a label "flash" on a form
- Prev by Date: Re: How I open a form in datasheet view from a switchboard menu?
- Next by Date: Re: Make a label "flash" on a form
- Previous by thread: Make a label "flash" on a form
- Next by thread: RE: Make a label "flash" on a form
- Index(es):
Relevant Pages
|