Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date comparison 1

Status
Not open for further replies.

brownfox1

Programmer
Jun 20, 2007
11
GB
This has got me. I have a table "Docket" with one record in it that's a date in "general date" "date/time format". 01/08/2007 17:45:00
But when I run this query:
Code:
SELECT * from Docket WHERE Docket.Date > #01/08/2007 13:43:00#  AND Docket.Date < #01/08/2007 21:43:00#
I get no result, but when I run this:
Code:
SELECT * from Docket WHERE Docket.Date > #01/08/2007 13:43:00#
I get this result: 01/08/2007 17:45:00
T.I.A
 
Use non ambiguous date format:
SELECT * FROM Docket WHERE Docket.Date > #2007-08-01 13:43:00# AND Docket.Date < #2007-08-01 21:43:00#

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top