I have been trying to make this work all morning, nothing seems to work. I have a small table with 5 fields, ApptName, ApptDoctor, ApptDate, ApptTime, ApptNotes. I need to be able to filter this data by a date range. I have done this before, but now it is giving me problems. If I setup my table so that ApptDate is a datetime field, and run this query,
Then it gives me no results, even though I have 3 records that are between that date range.
If I setup ApptDate as a varchar, and run this query,
It returns all records between that range, but if one of the dates is 11/01/2005 it returns that record as well. I have searched high and low and can't find anything about this.
Thanks in advance,
Drew
Code:
SELECT *
FROM tblCliAppts
WHERE ApptDate BETWEEN 10/01/2004 AND 11/31/2004
Then it gives me no results, even though I have 3 records that are between that date range.
If I setup ApptDate as a varchar, and run this query,
Code:
SELECT *
FROM tblCliAppts
WHERE ApptDate BETWEEN '10/01/2004' AND '11/31/2004'
It returns all records between that range, but if one of the dates is 11/01/2005 it returns that record as well. I have searched high and low and can't find anything about this.
Thanks in advance,
Drew