I'm trying to create a simple welcome form. I have it's activate event using the following procedure:
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
I have created all the appropriate labels. "Good Morning" displays, but "Good Afternoon" does not display. I can't figure out why? Thanks in advance for your help.
Mike
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
I have created all the appropriate labels. "Good Morning" displays, but "Good Afternoon" does not display. I can't figure out why? Thanks in advance for your help.
Mike