J
James
I have a form that I want to show only the date that are in FilterDateStart
and FilterDateEnd. I have the code below, but I am getting the "error 13:
data mismatch". What am I doing wrong?
-----start code---------
Dim strFilter As String
Const conJetDate = "\#mm\/dd\/yyyy\#"
If IsDate(Me.FilterDateStart) Then
strFilter = "DueDate > " & Format(Me.FilterDateStart + 1, conJetDate) &
"" _
And "DueDate <= " & Format(Me.FilterDateEnd, conJetDate) & ")"
Me.Filter = strFilter
Me.FilterOn = True
End If
------end code-----------
and FilterDateEnd. I have the code below, but I am getting the "error 13:
data mismatch". What am I doing wrong?
-----start code---------
Dim strFilter As String
Const conJetDate = "\#mm\/dd\/yyyy\#"
If IsDate(Me.FilterDateStart) Then
strFilter = "DueDate > " & Format(Me.FilterDateStart + 1, conJetDate) &
"" _
And "DueDate <= " & Format(Me.FilterDateEnd, conJetDate) & ")"
Me.Filter = strFilter
Me.FilterOn = True
End If
------end code-----------