I apologise in advance for not having found a solution that may already exist on this site (if that is the case, I'd be very grateful if I could be pointed to the thread...).
I need to perform a query on a small table (bookings). The table has 2 fields that include the booked from and to dates.
I'd like to be able to run a query to see if an individual date is 'taken'.
The format of the 2 fields is YYYY-MM-DD, the date passed to the query is currently formatted identically, but could easily be changed if need be.
I've tried many other work-arounds but am very frustrated now.
Basically, I'd like a true if 2008-10-22 is given (assuming that there is a book_from of 2008-10-19 and a book_to of 2008-10-26).
Many thanks in advance!
Simon Clements-Hawes
I need to perform a query on a small table (bookings). The table has 2 fields that include the booked from and to dates.
I'd like to be able to run a query to see if an individual date is 'taken'.
The format of the 2 fields is YYYY-MM-DD, the date passed to the query is currently formatted identically, but could easily be changed if need be.
I've tried many other work-arounds but am very frustrated now.
Basically, I'd like a true if 2008-10-22 is given (assuming that there is a book_from of 2008-10-19 and a book_to of 2008-10-26).
Many thanks in advance!
Simon Clements-Hawes