I would like to get a running tally of how many widgets were/are rented at any one time, by month, by year. Data is held in an MS Access 2003 db;
- Table name: rent_table
- Fields:
- rentid
- startdate
- enddate
- rentfee
- rentcost
- bookingfee
Something like; Count number of rentid's that fall between month/year, then group them?
e.g. if a widget was rented from 5th Jan 2014 to 8th April 2014 it would appear as a count in Jan, Feb, Mar and April tally's.
Many thanks.
EDIT
More details (sorry);
- Access db is fronted by classic ASP.
- If possible I don't want to create any new tables.
- No input is required in order to run the report.
- There are around 350-400 widgets that could be rented at any one time.
- Each widget is rented exclusively.
Report output example;
- Month | Year | NumRented
- Jan 2014 86
- Feb 2014 113
- ...
Can a query pick up dates within dates? So literally do a count of the table where date >Dec 31st 2013 AND <1st Feb 2014 (to grab a count for all of January 2014) and would that include the example of the rent starting on the 5th Jan? So I could just do twelve counts for each year?