M
Matt Dawson
I have designed a query where i want to sum how many quotes have been either
sent, not sent or rejected by country.
I have used this as my SQL but it brings up the number of overall records
for each country not the number of those sent or rejected etc.
This is my SQL:
SELECT Acceptance.Country, Count(Acceptance.[Quote Sent]) AS [CountOfQuote
Sent], Count(Acceptance.[Quote Rejected]) AS [CountOfQuote Rejected],
Count(Acceptance.[Quote Not Sent]) AS [CountOfQuote Not Sent]
FROM Acceptance
GROUP BY Acceptance.Country
HAVING (((Count(Acceptance.[Quote Sent]))=Yes)) OR
(((Count(Acceptance.[Quote Rejected]))=Yes)) OR (((Count(Acceptance.[Quote
Not Sent]))=Yes));
What is wrong with this?
Many Thanks,
Matt
sent, not sent or rejected by country.
I have used this as my SQL but it brings up the number of overall records
for each country not the number of those sent or rejected etc.
This is my SQL:
SELECT Acceptance.Country, Count(Acceptance.[Quote Sent]) AS [CountOfQuote
Sent], Count(Acceptance.[Quote Rejected]) AS [CountOfQuote Rejected],
Count(Acceptance.[Quote Not Sent]) AS [CountOfQuote Not Sent]
FROM Acceptance
GROUP BY Acceptance.Country
HAVING (((Count(Acceptance.[Quote Sent]))=Yes)) OR
(((Count(Acceptance.[Quote Rejected]))=Yes)) OR (((Count(Acceptance.[Quote
Not Sent]))=Yes));
What is wrong with this?
Many Thanks,
Matt