I have a question; see if someone can help me out. I want a run a report in access
“By Type by Location”
Type is the drug name and location is the physical location. What I want to do is count the location and group by Type, and add the total number of location by each Type and put it under Type.
That’s what I have so far, and its working fine, but I am not getting the total number of location and place it under Type.
[CODE=TEXT]
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT Intervensions1.[Type of Intv], Intervensions1. Location, Count(Intervens ions1.fldID) AS CountOffldID
FROM Intervensions1
WHERE (((Intervension s1.Date) Between [Start Date] And [End Date]))
GROUP BY Intervensions1.[Type of Intv], Intervensions1. Location
ORDER BY Intervensions1.[Type of Intv];
[/CODE]
Thanks for your help.
“By Type by Location”
Type is the drug name and location is the physical location. What I want to do is count the location and group by Type, and add the total number of location by each Type and put it under Type.
That’s what I have so far, and its working fine, but I am not getting the total number of location and place it under Type.
[CODE=TEXT]
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT Intervensions1.[Type of Intv], Intervensions1. Location, Count(Intervens ions1.fldID) AS CountOffldID
FROM Intervensions1
WHERE (((Intervension s1.Date) Between [Start Date] And [End Date]))
GROUP BY Intervensions1.[Type of Intv], Intervensions1. Location
ORDER BY Intervensions1.[Type of Intv];
[/CODE]
Thanks for your help.
Comment