I have two dates(range) which is entered through ASP form in MM/DD/YYYY format. The date in the table is stored as YYYYMMDD. I converted d1 and d2 to that form. It has to be checked with the date in the table.
"Select date1 from table1 where date1 between '" & d1 & "' and '" & d2 & "'"
I get a syntax error.
"Select date1 from table1 where date1 between '" & d1 & "' and '" & d2 & "'"
I get a syntax error.