Trying to get a text count

G

Guest

I am trying to count the number of instances that a particular phrase appears
in a field. I have been able to have the phrase identified, but I cannot get
an actual count.

The SQL below gives me a field of "Reason for Dispute" and the result is
"Not our patient" instead of an actual count. Can someone help me with the
missing part of this, please?

SELECT DISTINCT invoices.[Reason for Dispute]
FROM invoices
WHERE ((([Invoices]![Reason for Dispute])="Not our Patient"));
 
G

Guest

SELECT [Reason For Dispute], Count(*) as NumOf
FROM Invoices
WHERE [Reason For Dispute]="Not Our Patient"
GROUP BY [Reason For Dispute];
 

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