【发布时间】:2018-11-22 12:48:20
【问题描述】:
我有一个 MS Access 2007 查询,其条件如下 - 但它不起作用!
IIf([Forms]![CSL_CSD_Log]![Reason_Category]=1,<6,[Forms]![CSL_CSD_Log]![Reason_Category])
我不明白为什么 TRUE 结果没有给我所有
我错过了什么吗??
提前致谢。
【问题讨论】:
-
你能发布你的查询的SQL吗?我认为您需要
EVAL您的 IIf 语句才能按您期望的方式工作。 -
@Minty 这是我的 SQL 代码 'SELECT TBL_Descriptor_Values.Descriptor_ID、TBL_Descriptor_Values.Descriptor、TBL_Descriptor_Values.Descriptor_Category FROM TBL_Descriptor_Values WHERE ((((TBL_Descriptor_Values.Descriptor_Category)=IIf([Forms]![CSLC_CSD]) ]=1,(TBL_Descriptor_Values.Descriptor_Category)