N
Neicey23
I've got a Application that I am trying to test the date selected on an
ACCESS calendar to display if it is a Holiday (which I have stored on a
table). I'm new at this, and believe I need to convert the date but don't
know how.
Here's what I have so far:
Dim dt As String
dt = Me.selecteddate.Value
'------2008 Holiday's ----
If Me.selecteddate = #1/1/2008# Or #2/18/2008# Or #5/26/2008# Or
#7/4/2008# Or #9/1/2008# Or #11/11/2008# _
Or #11/27/2008# Or #11/28/2008# Or #12/24/2008# Or
#12/25/2008# Then MsgBox "Date Requested Is a Holiday! ", vbOKOnly
End If
ACCESS calendar to display if it is a Holiday (which I have stored on a
table). I'm new at this, and believe I need to convert the date but don't
know how.
Here's what I have so far:
Dim dt As String
dt = Me.selecteddate.Value
'------2008 Holiday's ----
If Me.selecteddate = #1/1/2008# Or #2/18/2008# Or #5/26/2008# Or
#7/4/2008# Or #9/1/2008# Or #11/11/2008# _
Or #11/27/2008# Or #11/28/2008# Or #12/24/2008# Or
#12/25/2008# Then MsgBox "Date Requested Is a Holiday! ", vbOKOnly
End If