Hello. I'm trying to use a Query to count customer responses to a survey. For example, Customers can answer:
Yes, No, or Unsure
to the survey. I would like the Query to count total # of responses, total # of "Yes" responses, total # of "No" responses, and total # or "Unsure".
First of all, I don't understand why in Query Design View, When I select "Count" in the Total Category, and set the criteria as "Yes" it gives me a data type mismatch. These are just text fields in a table. I am not trying to sum them, just count them.
So I have been able to partially achieve what I want by using
SELECT Count
in SQL, but so far have had to use separate Queries for each category (Yes, No, or Unsure). I have tried
UNION SELECT with no success. Using separate Queries gets rather messy as there as several questions in this survey.
Thanks in advance for any assistance.
Yes, No, or Unsure
to the survey. I would like the Query to count total # of responses, total # of "Yes" responses, total # of "No" responses, and total # or "Unsure".
First of all, I don't understand why in Query Design View, When I select "Count" in the Total Category, and set the criteria as "Yes" it gives me a data type mismatch. These are just text fields in a table. I am not trying to sum them, just count them.
So I have been able to partially achieve what I want by using
SELECT Count
in SQL, but so far have had to use separate Queries for each category (Yes, No, or Unsure). I have tried
UNION SELECT with no success. Using separate Queries gets rather messy as there as several questions in this survey.
Thanks in advance for any assistance.