Yes, my date field is set as a "DATE" field not as a "VARCHAR"... after endless searching and having issues with the search function only searching the day and year, I have found to sue this to resolve the reversed MySQL YYY-MM-DD issue as well...
SQL =" SELECT * FROM unsolved WHERE date_FORMAT(Date_Entered, '%m') Like '%" & monthdate & "' and date_FORMAT(Date_Entered, '%Y') Like '" & yeardate & "%' and State Like 'Declined%' ORDER BY Date_Entered ASC ;"
works like a charm now!
|