S
subiaco
Guest
I have a student creating a hotel booking database. Tables include: tblGUEST, tblROOM, tblBOOKING
The BOOKING table links Guest with ROOM and has two fields StartDate and EndDate
This is an AS level project so don't want to get into an additional Items table for BOOKINGS
However, I would like them to create a crosstab query for showing room availablity. I've worked out how to do this but it requires a table containing each date a room is booked.
MY PROBLEM....is there a way of appending records to an extra table based upon a record of date and room for each date between the StartDate and EndDate in the tblBOOKINGS table. I realise that once this is done the tblBOOKINGS table will need to be updated in some way so that the process is not repeated
|Preferably via queries rather than code
Just being to list all the dates between the StartDate and End date would also be useful.
Thanks for any help
Kevin
The BOOKING table links Guest with ROOM and has two fields StartDate and EndDate
This is an AS level project so don't want to get into an additional Items table for BOOKINGS
However, I would like them to create a crosstab query for showing room availablity. I've worked out how to do this but it requires a table containing each date a room is booked.
MY PROBLEM....is there a way of appending records to an extra table based upon a record of date and room for each date between the StartDate and EndDate in the tblBOOKINGS table. I realise that once this is done the tblBOOKINGS table will need to be updated in some way so that the process is not repeated
|Preferably via queries rather than code
Just being to list all the dates between the StartDate and End date would also be useful.
Thanks for any help
Kevin