I'm working on this query where a user can search the database by name or by id or by dates. Everything works fine except when I try to search for records between 2 dates. It keeps telling me "a non-numeric is found where a numeric was expected". I've been staring at this for too long now so any help would be appreciated.
--This is an abridged version of the query.
where m_studies.study_date > To_Date(like '"+Request("field_H_ExamDt1"+"', 'MM/DD/YYYY')
AND m_studies.study_date < To_Date(like '"+Request("field_H_ExamDt2"+"', 'MM/DD/YYYY')
Thanks!
--This is an abridged version of the query.
where m_studies.study_date > To_Date(like '"+Request("field_H_ExamDt1"+"', 'MM/DD/YYYY')
AND m_studies.study_date < To_Date(like '"+Request("field_H_ExamDt2"+"', 'MM/DD/YYYY')
Thanks!