N
n09
Hey guys,
I have a table Table Children which records different vaccinations received
(children are identified by a unique ID). I want to create a query that will
let me see how many P1, P2, P3, Measles 1 and Measles 2 shots were given per
month. Each field (i.e. P1, P2, P3, Measles and Measles 2) are preceded by
respective date fields i.e. Date of P1, Date of P2 etc.
I can create individual queries but I don't know how to do it for in one
query:
SELECT Format([Table Children]![Date of P1], 'mmm yyyy') AS Month,
Sum(Abs([Table Children]![P1])) AS Penta1_month
FROM [Table Children]
GROUP BY Format([Table Children]![Date of P1],'mmm yyyy');
But suppose I want to see a table which has the months in the column of the
left and the different vaccination amounts in the row e.g.
P1 P2 P3
August 2009 20 35 40
thanks for the help!
I have a table Table Children which records different vaccinations received
(children are identified by a unique ID). I want to create a query that will
let me see how many P1, P2, P3, Measles 1 and Measles 2 shots were given per
month. Each field (i.e. P1, P2, P3, Measles and Measles 2) are preceded by
respective date fields i.e. Date of P1, Date of P2 etc.
I can create individual queries but I don't know how to do it for in one
query:
SELECT Format([Table Children]![Date of P1], 'mmm yyyy') AS Month,
Sum(Abs([Table Children]![P1])) AS Penta1_month
FROM [Table Children]
GROUP BY Format([Table Children]![Date of P1],'mmm yyyy');
But suppose I want to see a table which has the months in the column of the
left and the different vaccination amounts in the row e.g.
P1 P2 P3
August 2009 20 35 40
thanks for the help!