The other table is COMBINED CURRENT MONTH MEMBER COUNT that has a PCP Number and PCP Name.
I successfully obtain the counts of duplicates by location except where the PCP # = 99999999 and the PCP Name = *** UNASSIGNED ***
Code: Select all
SELECT [UPDATED PCP LIST].LOCATION, Count([COMBINED CURRENT MONTH MEMBER COUNT].[PCP NAME]) AS [CountOfPCP Name]
FROM [UPDATED PCP LIST] INNER JOIN [COMBINED CURRENT MONTH MEMBER COUNT] ON [UPDATED PCP LIST].[PCP NUMBER] = [COMBINED CURRENT MONTH MEMBER COUNT].[PCP NUMBER]
WHERE ((([COMBINED CURRENT MONTH MEMBER COUNT].[PCP NAME])>="1"))
GROUP BY [UPDATED PCP LIST].LOCATION
ORDER BY [UPDATED PCP LIST].LOCATION;
Thanks !
Michael Abrams