I am using the DateDiff function in my query. When the difference is positive it is fine but when it is negative I want access to see it as negative
For example if my DateDiff value is negative it implies that the clients paid on time and there is no penalty, but if the value is positive it implies that they paid late and therefor a penalty is imposed on them.
What I actually get when I use the iif function is that access appears not to see it as negative but also as a positive
DtCr: IIf([Expr1]="Yes",[Amount]*3/1000)
For example if my DateDiff value is negative it implies that the clients paid on time and there is no penalty, but if the value is positive it implies that they paid late and therefor a penalty is imposed on them.
What I actually get when I use the iif function is that access appears not to see it as negative but also as a positive
DtCr: IIf([Expr1]="Yes",[Amount]*3/1000)