Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: On Timer Help

Geek News

On Timer Help
Angelsnecropolis 12/4/2008 1:59:01 AM
I'm trying to create a Label whose caption changes every XX seconds.

I know about the ontimer event and how to use the label.caption in the code
but how do I get it to change to a different caption that is predefined in
the code?

I searched here but wasn't able to locate anything.

Thanks.


Re: On Timer Help
Rick Brandt <rickbrandt2[ at ]hotmail.com> 12/4/2008 2:25:45 AM
On Wed, 03 Dec 2008 17:59:01 -0800, Angelsnecropolis wrote:

[Quoted Text]
> I'm trying to create a Label whose caption changes every XX seconds.
>
> I know about the ontimer event and how to use the label.caption in the
> code but how do I get it to change to a different caption that is
> predefined in the code?
>
> I searched here but wasn't able to locate anything.
>
> Thanks.

Your question doesn't make total sense to me. If you know about using
the caption property then what is it that you don't know?

Me.LabelName.Caption = "Your New Caption"


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Re: On Timer Help
Angelsnecropolis 12/4/2008 6:59:08 PM
I'd like the caption to change every 15 seconds to a different pre-defined
caption and loop indefinatly between several pre-defined captions.

ex:
Caption = "Caption1"
15 seconds later
Caption = "Caption2"
15 seconds later
Caption = "Caption3"
etc...

Thanks.

"Rick Brandt" wrote:

[Quoted Text]
> On Wed, 03 Dec 2008 17:59:01 -0800, Angelsnecropolis wrote:
>
> > I'm trying to create a Label whose caption changes every XX seconds.
> >
> > I know about the ontimer event and how to use the label.caption in the
> > code but how do I get it to change to a different caption that is
> > predefined in the code?
> >
> > I searched here but wasn't able to locate anything.
> >
> > Thanks.
>
> Your question doesn't make total sense to me. If you know about using
> the caption property then what is it that you don't know?
>
> Me.LabelName.Caption = "Your New Caption"
>
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net