Total volume

P

Pietro

Hi,
I've the following query:

SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

I need to add a new coulmn "Volume" to know thw total volume of the cases
where type =[forms]![ragents]![type2] so that i may select a type from the
combobox on the form to know the number of cases and percentage of every
agent...
 
K

KARL DEWEY

I need to add a new coulmn "Volume" to know thw total volume of the cases
What is the formula to use for volume?

Here is your WHERE statement ---
SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
WHERE [Assistq2].[Type] =[Forms]![Ragents]![Type2]
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;
 
P

Pietro

Thank you KARL for your answer...
I don't have a problem in the WHERE statment,I need to know the percentage
of each [Type] compared to total numbers of types...
Consequently i need to know total numbers of types

KARL DEWEY said:
What is the formula to use for volume?

Here is your WHERE statement ---
SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
WHERE [Assistq2].[Type] =[Forms]![Ragents]![Type2]
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

--
KARL DEWEY
Build a little - Test a little


Pietro said:
Hi,
I've the following query:

SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

I need to add a new coulmn "Volume" to know thw total volume of the cases
where type =[forms]![ragents]![type2] so that i may select a type from the
combobox on the form to know the number of cases and percentage of every
agent...
 
K

KARL DEWEY

What has that to do with "Volume"?
--
KARL DEWEY
Build a little - Test a little


Pietro said:
Thank you KARL for your answer...
I don't have a problem in the WHERE statment,I need to know the percentage
of each [Type] compared to total numbers of types...
Consequently i need to know total numbers of types

KARL DEWEY said:
I need to add a new coulmn "Volume" to know thw total volume of the cases
What is the formula to use for volume?

Here is your WHERE statement ---
SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
WHERE [Assistq2].[Type] =[Forms]![Ragents]![Type2]
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

--
KARL DEWEY
Build a little - Test a little


Pietro said:
Hi,
I've the following query:

SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

I need to add a new coulmn "Volume" to know thw total volume of the cases
where type =[forms]![ragents]![type2] so that i may select a type from the
combobox on the form to know the number of cases and percentage of every
agent...
 
K

KARL DEWEY

I need to know the percentage of each [Type]
-----------
Which is it percent Type or Agent or both?

--
KARL DEWEY
Build a little - Test a little


Pietro said:
Thank you KARL for your answer...
I don't have a problem in the WHERE statment,I need to know the percentage
of each [Type] compared to total numbers of types...
Consequently i need to know total numbers of types

KARL DEWEY said:
I need to add a new coulmn "Volume" to know thw total volume of the cases
What is the formula to use for volume?

Here is your WHERE statement ---
SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
WHERE [Assistq2].[Type] =[Forms]![Ragents]![Type2]
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

--
KARL DEWEY
Build a little - Test a little


Pietro said:
Hi,
I've the following query:

SELECT Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type,
Count(Assistq2.Code) AS Cases
FROM Assistq2
GROUP BY Assistq2.ID, Assistq2.[Agent Name], Assistq2.Language, Assistq2.Type
ORDER BY Count(Assistq2.Code) DESC;

I need to add a new coulmn "Volume" to know thw total volume of the cases
where type =[forms]![ragents]![type2] so that i may select a type from the
combobox on the form to know the number of cases and percentage of every
agent...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top