Countiif between dates in crosstab query

Cassim

New member
Local time
Today, 15:41
Joined
Nov 4, 2013
Messages
8
Hi Guys,

I am new to MS Access and I have a tiny problem :rolleyes:

I have genetated a table using a crosstab query and it gives the information as below

12/10 12/11 12/12 13/01
Part 1 1 2
Part 2 4 4 4
Part 3 5

So basically part, qty used, year/month used - it works fine up to this point.

Now I want to either add more columns to the crosstab query to count number of times Part 1 was used in last 12 months & 24-13 months

Or

Create another query to do this.

But I want the count function to start counting from current month to last 12 months and from month 13 to month 24 (in another column).

The problem I am having is that this query will run every month and I don't want to update the column headers (in query property sheet) instead I want query to pick this up automatically.

I use the design view to generate queries so much appreciate if you could advise me of a solution in that "View".

Thanks.
 

Users who are viewing this thread

Back
Top Bottom