Trancemission
Technical User
I am working on a hotel project and am looking to improve a function which has been written to check for dates in a table. The function is ugly and very slow (uses text file dumps etc.... no I don't want to amend it)
I have a table of hotels, each hotel can have multiple room types. Each room type should have associated records in another table with bands of dates (01/01/04 - 29/12/05) and prices.
I need to ensure that these bands of dates do not have gaps in. There can be an infinite number of date bands (usually 3-4 though)
Some helpful (?) examples
So in the above data I need to see that there is a gap between 31/05/04 and 01/07/04.
The data above is only demo to get theory.
I am having a real headache, i am currently learning more and more of access but still have not mastered creating recordsets whilst looping through another recordset.
Any help teaching this unix man some windows skills welcome
Trancemission
=============
If it's logical, it'll work!
I have a table of hotels, each hotel can have multiple room types. Each room type should have associated records in another table with bands of dates (01/01/04 - 29/12/05) and prices.
I need to ensure that these bands of dates do not have gaps in. There can be an infinite number of date bands (usually 3-4 though)
Some helpful (?) examples
Code:
Hotels
------
Hotel Name | Room Type | RoomTypeID
-----------------------------------------
Some Hotel | Some Room1 | 1
Some Hotel | Some Room2 | 2
Room Types
----------
RoomTypeID |Hotel ID | Start Date | End Date | PricePerNight
-----------------------------------------------------
1 | 1 |01/01/04 | 14/02/04 | 55
1 | 1 | 15/02/04 | 31/05/04 | 75
1 | 1 | 01/07/04 | 31/12/04 | 155
So in the above data I need to see that there is a gap between 31/05/04 and 01/07/04.
The data above is only demo to get theory.
I am having a real headache, i am currently learning more and more of access but still have not mastered creating recordsets whilst looping through another recordset.
Any help teaching this unix man some windows skills welcome
Trancemission
=============
If it's logical, it'll work!