Its just too late on Friday before the holiday, and for the life of me, I cannot figure out what is wrong with this piece of code. Any thoughts? Even if its just to tell me what a schmuck I am?
Private Sub Form_Load()
Dim dtDate As Date
dtDate = Now()
If DatePart("h:mm:ss", dtDate) > #4:00:00 PM# And DatePart("h:mm:ss", dtDate) < #5:00:00 PM# Then
MsgBox (dtDate)
End If
End Sub
thanks!
Private Sub Form_Load()
Dim dtDate As Date
dtDate = Now()
If DatePart("h:mm:ss", dtDate) > #4:00:00 PM# And DatePart("h:mm:ss", dtDate) < #5:00:00 PM# Then
MsgBox (dtDate)
End If
End Sub
thanks!