IIf 函数示例
该示例使用了 IIf 函数计算“订单数量”字段,在数量大于 1000 时返回“Large”;否则,返回“Small”。可以在计算控件的 ControlSource 属性中输入下列表达式。
= IIf([OrderAmount] > 1000, "Large", "Small")
SQL语句中的应用:
SELECT IIf([OrderAmount] > 1000, "Large", "Small") FROM tempTable
该示例使用了 IIf 函数计算“订单数量”字段,在数量大于 1000 时返回“Large”;否则,返回“Small”。可以在计算控件的 ControlSource 属性中输入下列表达式。
= IIf([OrderAmount] > 1000, "Large", "Small")
SQL语句中的应用:
SELECT IIf([OrderAmount] > 1000, "Large", "Small") FROM tempTable
浙公网安备 33010602011771号