I am working on a hotel booking system using MS Access. The room bookings are logged in the database as "from" and "to" dates. I need to write a report which shows, for each room, how many days have been booked in each month. I can't get this to work when the "from" and "to" dates cross over a month end - e.g. from 28/01/2007 to 05/02/2007. How do I write a query which will put the 4 days correctly in the January total and 5 days in the February total?
Help much appreciated.
Help much appreciated.