Function Greeting User on Open: MS Access

Function Greeting User on Open Form. Create Greeting morning when program opened

=================================

Public Function partOfday(mytime As Variant)

‘Morning from 00:00:01 AM – 11:59:59 AM
If mytime > TimeSerial(0, 0, 1) And mytime < TimeSerial(11, 59, 59) Then
     partOfday = “Good Morning”

‘Afternoon from 12:00:01 PM – 5:00:00 PM
ElseIf mytime > TimeSerial(12, 0, 1) And mytime < TimeSerial(17, 0, 0) Then
     partOfday = “Good Afternoon”

‘Evening from 5:00:01 PM – 11:59:59 PM
ElseIf mytime > TimeSerial(17, 0, 1) And mytime < TimeSerial(23, 59, 59) Then
     partOfday = “Good Evening”
End If
End Function

================================

Each and every form of the medicine so always do as advised achat viagra pfizer instead of doing things on your own. I don’t like that my breasts no longer point perkily skyward when I lie down. cialis cipla Continual cell renewal is an important branch to keep the vivo balance, and research shows that immune ones in stem cell niche have the great effect on this progress by regulating the exercise of stem cells and their potential therapeutic implications. cheap viagra Timely treatment levitra cialis viagra can improve your condition at the same time.

Related posts