Hum, lets see:
I would probably make a report by week, or perhaps the staff need a "daily"
report printed
I would simply build a nice form with a start/end date prompt (that is easy
for the user). Some prompt report ideas can be seen at:
http://www.attcanada.net/~kallal.msn/ridesrpt/ridesrpt.html
Once you got a start/end date range..then it is a simple sql statement to
show all people booked.
The sql is:
select Name, PhoneNumber, RoomNumber, CheckInDate, CheckOutDate * from
qryBookingsView
where dtStart <= CheckOutDate and dtEnd >= CheckInDate.
So, assuming you have a nice report based on the he above type of query (but
of course without the conditionals...since we will pass the conditions to
the report via the where clause. The button code to view the report from
your nice calendar prompt form would look like:
strStartDate = "#" & format(dtStart,"mm/dd/yyyy") & "#"
strEndDate = "#" & format(dtEnd,"mm/dd/yyyy") & "#"
strWhere = "CheckOutDate >= " & strStartDate & " and CheckInDate <= " &
strEndDate
docmd.OpenReprot "rptOccupency",acViewPreview,,strWhere
The above will show any collisions for the date range given..and thus you
get a current occupancy report for all people in the given time periods
(likely one day..or perhaps one week, or just perahps the week end).