请问这行表达式错在哪里? 期末库存金额: IIf([进仓总计.金额之总计] Is Not Null And [销售总计.金额之总计] Is Null,[期初金额]+[进仓总计.金额之总计]),IIf([进仓总计.金额之总计] Is Null And [销售总计.金额之总计] Is Not Null,[期初金额]-[销售总计.金额之总计]),IIf([进仓总计.金额之总计] Is Null And [销售总计.金额之总计] Is Null,[期初金额],[期初金额]+[进仓总计.金额之总计]-[销售总计.金额之总计])))
<>过长的IIF语句确实很难看清楚错误的所在,其实可以用一个较简单的方法去书写,分行来显示,例如先用文本编辑器写句子,然后再粘贴</P>
<>IIf([进仓总计.金额之总计] Is Not Null And [销售总计.金额之总计] Is Null,[期初金额]+[进仓总计.金额之总计],</P>
<>IIf([进仓总计.金额之总计] Is Null And [销售总计.金额之总计] Is Not Null,[期初金额]-[销售总计.金额之总计],</P>
<P>IIf([进仓总计.金额之总计] Is Null And [销售总计.金额之总计] Is Null,[期初金额],[期初金额]+[进仓总计.金额之总计]-[销售总计.金额之总计])))</P>