Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

Square pegs in Round holes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy6 - 28 Dec 2006 10:39 GMT
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....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.