Access Query (SQL)
By osamabawab •
How to compare a date with another date which is generated by (dateserial) formula in SQL Query when:
Dateserial (year(date()),month,day) 'year is taken from other date in the same query
The result of this formula is not a valid date
I tried CDate (Dateserial (year(date()),month,day)) but still the result is not a valid date
I am checking by IsDate formula and the result is -1 (means it is not a date)
and if I compare it with any other date the msg (data type mismatch) is appearing
Any body knows how to get the result converted to a date so that I can compare this result with any other date?
0 comments