Hello, here's some code below...
What I'm trying to get is the second column is supposed to be a DISTINCT count of state_cd, not just a regular count. This works in MySQL by just using COUNT(DISTINCT state_cd), but I don't know how to translate this into Access. I'm getting an error message.
Any help is greatly appreciated.
Code:
SELECT TblLOB.rpt_cust_name AS [Customer Name], COUNT(TblLOB.state_cd) AS [State Count], <snipped a lot of other fields>
FROM TblLOB INNER JOIN TblMemCnt ON TblLOB.id = TblMemCnt.id
GROUP BY TblLOB.rpt_cust_name;
What I'm trying to get is the second column is supposed to be a DISTINCT count of state_cd, not just a regular count. This works in MySQL by just using COUNT(DISTINCT state_cd), but I don't know how to translate this into Access. I'm getting an error message.
Any help is greatly appreciated.