Question : Counting many items within a date range

I am trying to get counts of items that fit given criteria.  A crosstab query works well, but I need to be able to set the date range on the fly.  

I have the date range as textboxes to fill in on a form, but when I used those to filter the query which has many dates-worth of material and then run a cross-tab on that, I get an error message that it cannot find that form.  Between ([Forms]![switchboard]![txtRptStartDate]) And ([Forms]![switchboard]![txtRptEndDate]) is my criteria on the first query.  

What is the best way to do this?  The table of information has about 200 entries per year and I may need a month or a week in this count (as well as a year-to-date count).  
TIA
Susan

Answer : Counting many items within a date range

I think I remember the problem.  I had parameters on a query which I then tried to use as the record source for a cross tab and I could not get it it work.  As a test, same the results of your Parameter query to a new table and then use the new table as the record source for the cross tab - betcha that works.
Random Solutions  
 
programming4us programming4us