Sorry not working... I'm using the following: SELECT * FROM hits WHERE datedisplayed > '#2004/01/01-08:00:00# and datedisplayed < #2004/11/30-18:00:00#' ORDER BY datedisplayed ASC
quote:The datedisplayed is a TEXT field? is this the problem?
Probably. You're using a date comparison against a text field, so the db engine will probably be doing a string comparison rather than a date comparison. If your db supports it you could try a CONVERT or CAST on the stored string value to convert to a date value where the comparison should then work as expected.
As Doug G said, it's a bit harder with a text field. You also put in some quotes that I didn't have, but it doesn't matter because I was hoping it was a date/time field.