I was able to get the query to run by removing the & symbol.
SELECT IIf(DCount("*","dbo_CMC_PRPR_PROV","TaxID = TaxID")>1,"Multiple",[PRPR_NPI]) AS PRPR_NPICalc, ProviderList.TaxID
FROM ProviderList INNER JOIN dbo_CMC_PRPR_PROV ON (ProviderList.TaxID = dbo_CMC_PRPR_PROV.MCTN_ID) AND...
Thank you both for the quick reply.
Duane, when i enter that SQL into my query, I get the below error
The expression you entered as a query parameter produced this error: 'Microsoft Access cannot find the name 'TaxID' you entered in the expression'
Andy, you are correct
Current Result
PRPR_NPI[tab] TaxID
12[tab][tab][tab][tab]12345
14[tab][tab][tab][tab]12345
52[tab][tab][tab][tab]12345
83[tab][tab][tab][tab]54321
18[tab][tab][tab][tab]98763
23[tab][tab][tab][tab]98763
Desired Result
PRPR_NPI[tab] TaxID
multiple[tab][tab][tab]12345...
Thank you for the tips! I apologize, but i am not familiar with TGML and couldn't get it to look as good as your reply. But you are correct in that I only want one record per employee (TaxID). This is a great start so I am including my current sql since i'm joining to another table. I was trying...
I'm new to query building in Access. I have a unique identifier such as an employee id and the result in question is fruits. If an employee has more than one fruit, i want to see the word "multiple". If the employee has only one fruit, i want to see that fruit. How do i write a formula to show...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.