Hey All,
I am working on a database that is being used to track rooms and their hours of availability. These hours are represented in hour-long blocks. There is a record for each hour that the room is not available. I am able to get these records to show in my subreport, but the report becomes huge. If the room is not available for a whole day, then I have 24 hour-long blocks and a total 48 hours that print out. I need to evaluate these records an print them out for continuous blocks.
Example:
Recordset = 12:00a-1:00a, 1:00a-2:00a,2:00a-3:00a,3:00a-4:00a,6:00a-7:00a,7:00a-8:00a
Desired Output = 12:00a-4:00a, 6:00a-8:00a
Any Ideas?
I am working on a database that is being used to track rooms and their hours of availability. These hours are represented in hour-long blocks. There is a record for each hour that the room is not available. I am able to get these records to show in my subreport, but the report becomes huge. If the room is not available for a whole day, then I have 24 hour-long blocks and a total 48 hours that print out. I need to evaluate these records an print them out for continuous blocks.
Example:
Recordset = 12:00a-1:00a, 1:00a-2:00a,2:00a-3:00a,3:00a-4:00a,6:00a-7:00a,7:00a-8:00a
Desired Output = 12:00a-4:00a, 6:00a-8:00a
Any Ideas?