Hi,
It there is one thing I have in programing it is date conversions...
I have this line of code:
If Not filterDate.Value = vbNull Then
strCounter = strCounter + 1
If strCounter > 1 Then strChosen = strChosen & "AND "
strChosen = strChosen & "(([qrySchoolAttendancePerDay].[DATE]) = '" & filterDate.Value & "') "
End If
And when I run this I get an error: Data type mismach in criteria expression
filterDate.Value is: shortdate chosen from acceess calendar
date in qry is stored in table as: DATE/TIME shortdate as well
Any idea?
Thx
It there is one thing I have in programing it is date conversions...
I have this line of code:
If Not filterDate.Value = vbNull Then
strCounter = strCounter + 1
If strCounter > 1 Then strChosen = strChosen & "AND "
strChosen = strChosen & "(([qrySchoolAttendancePerDay].[DATE]) = '" & filterDate.Value & "') "
End If
And when I run this I get an error: Data type mismach in criteria expression
filterDate.Value is: shortdate chosen from acceess calendar
date in qry is stored in table as: DATE/TIME shortdate as well
Any idea?
Thx