Access SQL查询中的语法错误

时间:2017-06-13 19:59:18

标签: sql ms-access

{select 
IIF(PA.ES='Acceptable',1,
IIF(PA.ES='Warning',2,
IIF(PA.ES='Critical',3, 
IIF(PA.ES='No Need to Report','NNTR','NR')))) AS Overall_Health
from
qry_tEMP AS PA}

我的身份证有ES = No Need to Report,但当我以这种方式运行时,我得到了

Overall_Health
#Error

我的目标是按原样显示值。

0 个答案:

没有答案