I have a query called 'Query1' and it uses the following SQL:
I am attempting to 'rank' the records based on the NPS score. When I run it I get the following error:
"The Microsoft Jet Database engine does not recognise " as a valid field name or expression"
I have double checked the SQL and it seems okay. Where am I going wrong?
Many thanks.
Code:
SELECT DISTINCT
nps.Agent
, nps.[NPS Score]
, (Select Count(*)
from [3-npscountagents qry]
Where [NPS Score] < [nps].[NPS Score])
AS Rank
FROM [3-npscountagents qry]
AS nps
ORDER BY nps.[NPS Score] DESC;
"The Microsoft Jet Database engine does not recognise " as a valid field name or expression"
I have double checked the SQL and it seems okay. Where am I going wrong?
Many thanks.
Comment