ok heres the query
SELECT * FROM reservations WHERE LocationID = 2 AND (#10/14/2001 09:00:00# BETWEEN BookingStart AND BookingEnd) ORDER BY BookingStart;
there are two items in the database
1
bookingstart = 14/10/2001 10:30:00
bookingend = 14/10/2001 11:00:00
2
bookingstart = 14/10/2001 12:30:00
bookingend = 15/10/2001 13:00:00
if the search date is 14/10/2001 09:00:00 then no items are returned !
if the search date is 15/10/2001 09:00:00 only the second item is returned !
what am i doing wrong here ?
SELECT * FROM reservations WHERE LocationID = 2 AND (#10/14/2001 09:00:00# BETWEEN BookingStart AND BookingEnd) ORDER BY BookingStart;
there are two items in the database
1
bookingstart = 14/10/2001 10:30:00
bookingend = 14/10/2001 11:00:00
2
bookingstart = 14/10/2001 12:30:00
bookingend = 15/10/2001 13:00:00
if the search date is 14/10/2001 09:00:00 then no items are returned !
if the search date is 15/10/2001 09:00:00 only the second item is returned !
what am i doing wrong here ?