I Have a Hire Dates Table, and to keep things simple, the car has hire dates
booked between 01/01/07 to 10/01/07 and another between 20/01/07 to 30/01/07.
How do I test by querying the table that the dates are free for a further
booking on the 11/01/07 to 19/01/07, i.e. prove the spaces between records.
Beware, the query must not be able to bridge an existing booking, i.e.
31/12/06 to 11/01/07
It probably seems quite simple but it's running me round in circles.
Many Thanks in advance for any assistance.
Andy....
Alex Dybenko - 28 Dec 2006 12:53 GMT
Hi,
I think you can run a query with this function in criteria:
http://alexdyb.blogspot.com/2004/09/access-isoverlapping.html
if no records return - then dates are free

Signature
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
>I Have a Hire Dates Table, and to keep things simple, the car has hire
>dates
[quoted text clipped - 8 lines]
> Many Thanks in advance for any assistance.
> Andy....