Scrolling words for 3 conditional welcoming words.

F

Frank Situmorang

Hello:

Learning from this forum, I have made 3 conditional welcoming words with the
flowwing VBA. My question is how can we make it works if we want the 3
conditional wecoming words scrolling, and we want this form automatically
closed if we go to the next main switchboards
Option Compare Database

Private Sub Form_Activate()
'When the database is opened display welcome user message.
'When the timer interval is reached, this form closes and opens Switchboard
If Time() < 0.5 Then
[lblMorning].Visible = True
[lblAfternoon].Visible = False
[LblEvening].Visible = False
ElseIf Time() > 0.5 And Time() < 0.75 Then
[lblMorning].Visible = False
[lblAfternoon].Visible = True
[LblEvening].Visible = False
ElseIf Time() > 0.75 Then
[lblMorning].Visible = False
[lblAfternoon].Visible = False
[LblEvening].Visible = True
End If
End Sub


Thanks for anyhelp on this.
 

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