Access 2000 timer event

G

Guest

I want to create a front screen where "box1" appears for 2 seconds, then
"box2" appears and "box1" dissapppears, then two seconds after that "box3"
appears and "box2" dissappears, so on... in total 5 boxes with different text
in them must appear and dissappear before the next follows suit and at the
end of this close down and open "formMain".
How can I do this, timer events have confused me immensely!
Any help would be REALLY grateful.

forward to (e-mail address removed)
 
D

Douglas J. Steele

Have your 5 boxes on the form.

In the form's Load event, set the Visible property for box 1 to True, and
the other 4 boxes False, and set the TimerInterval property to 2000:

Me.Box1.Visible = True
Me.Box2.Visible = False
Me.Box3.Visible = False
Me.Box4.Visible = False
Me.Box5.Visible = False
Me.TimerInterval = 2000

In the Timer event, try something along the lines of:

If Me.Box1.Visible = True Then
Me.Box1.Visible = False
Me.Box2.Visible = True
ElseIf Me.Box2.Visible = True Then
Me.Box2.Visible = False
Me.Box3.Visible = True
ElseIf Me.Box3.Visible = True Then
Me.Box3.Visible = False
Me.Box4.Visible = True
ElseIf Me.Box4.Visible = True Then
Me.Box4.Visible = False
Me.Box5.Visible = True
Else
Me.Box5.Visible = False
Me.TimerInterval = 0
End If

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


"(e-mail address removed)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top