D
DS
I'm trying to set a Caption on a label based on the time of day..
If Me.TxtTime > 12:00AM and < 12:00PM Then
Me.LblGreeting.Caption ="Good Morning"
Elseif Me.TxtTime > 12:00PM and < 6:00PM Then
Me.LblGreeting.Caption ="Good Afternoon"
Elseif Me.TxtTime > 6:00PM and < 12:00AM Then
Me.LblGreeting.Caption ="Good Evening"
End If
Any help is appreciated to make this thing work.
Thanks
DS
If Me.TxtTime > 12:00AM and < 12:00PM Then
Me.LblGreeting.Caption ="Good Morning"
Elseif Me.TxtTime > 12:00PM and < 6:00PM Then
Me.LblGreeting.Caption ="Good Afternoon"
Elseif Me.TxtTime > 6:00PM and < 12:00AM Then
Me.LblGreeting.Caption ="Good Evening"
End If
Any help is appreciated to make this thing work.
Thanks
DS