L
luvarchaeology via AccessMonster.com
I'm brand new to acess and have run into a problem. I reviewed previous
queries on this subject but could not find a solution to my exact problem or
at least one easy enough to understand based on my limited access skills. I
have a crosstab query that returns counts of flake type by flake material. I
have pasted the SQL below to make it easier to understand. My question is how
do I create a Percentage row heading that will return percents of the total
counts. I know I can create percents in a report but I want to keep it in the
query without having to create a seperate report.
TRANSFORM Count(Flakes.Site_No) AS CountOfSite_No
SELECT Flakes.Material, Count(Flakes.Site_No) AS [Total of Site_No]
FROM Flakes
WHERE (((Flakes.Site_No) Like "05-001"))
GROUP BY Flakes.Material
PIVOT Flakes.Type;
I hope this makes sense. I'm sure there is a very easy solution but I've only
been using access for two weeks now and what I've learned I've gathered from
the help menu, so the least complicated soultion is the best. Thanks in
advance!
queries on this subject but could not find a solution to my exact problem or
at least one easy enough to understand based on my limited access skills. I
have a crosstab query that returns counts of flake type by flake material. I
have pasted the SQL below to make it easier to understand. My question is how
do I create a Percentage row heading that will return percents of the total
counts. I know I can create percents in a report but I want to keep it in the
query without having to create a seperate report.
TRANSFORM Count(Flakes.Site_No) AS CountOfSite_No
SELECT Flakes.Material, Count(Flakes.Site_No) AS [Total of Site_No]
FROM Flakes
WHERE (((Flakes.Site_No) Like "05-001"))
GROUP BY Flakes.Material
PIVOT Flakes.Type;
I hope this makes sense. I'm sure there is a very easy solution but I've only
been using access for two weeks now and what I've learned I've gathered from
the help menu, so the least complicated soultion is the best. Thanks in
advance!