我目前正在尝试在一个nested if statement
字段中创建一个字段,该字段access database
根据它必须满足的条件填充数据。
到目前为止,这就是我在表达式生成器中的内容:
IIf([JDE Aging Report].[Term]="PPL" And [JDE Aging Report].[OpenAmount]>0,"PPL Sale",
IIf([JDE Aging Report].[Term]="PPL" And [JDE Aging Report].[OpenAmount]<0,"PPL Credit",
IIf([JDE Aging Report].[Term]="AE" Or "DSC" Or "MC" Or "VSA" And [JDE Aging Report].[OpenAmount]<0,"CC Credit",
**IIf([JDE Aging Report].[Term]="AE" Or "DSC" Or "MC" Or "VSA" And [JDE Aging Report].[OpenAmount]>1,"CC Sale"))))**
由于某种原因,它没有选择表达式中的最后一个参数(粗体),因此正在更新的数据不正确。
有人可以告诉我我做错了什么吗?nested if statements
在构建时是否有限制access database
?
非常感谢!