K
KarenY
Hi, I've checked many IIF functions from the Discussin Group but I couldn't
find one similar to what I am looking for....
I have 3 columns: INVCNO, SALESACCT, NetValue
Invoice number's prefixes are S and I.
Credit memo prefix is C.
All I, S and C are in the INVCNO column.
The query/table has put all the NetValue as positive figures.
I want to change the value into minus value for the credit memo in the
INVCNO.
I can separate into 2 tables, but I think there must be a way to change the
value into negative for the credit memo's.
I've tried the following expressions for the IIF function but not all of the
values were changed properly ??? I don't have a definite number for the
invoice/credit memo number, so I've used *, probably * is not working for IIF.
Please help :
Value: CCur(IIf([INVCNO]="S*" And [INVCNO]="I*",[NetValue],-[NetValue]))
Neither does this work :
Value: Value: CCur(IIf([INVCNO]="C*",-[NetValue],[NetValue]))
I am using Access 2003.
thanks
karen
find one similar to what I am looking for....
I have 3 columns: INVCNO, SALESACCT, NetValue
Invoice number's prefixes are S and I.
Credit memo prefix is C.
All I, S and C are in the INVCNO column.
The query/table has put all the NetValue as positive figures.
I want to change the value into minus value for the credit memo in the
INVCNO.
I can separate into 2 tables, but I think there must be a way to change the
value into negative for the credit memo's.
I've tried the following expressions for the IIF function but not all of the
values were changed properly ??? I don't have a definite number for the
invoice/credit memo number, so I've used *, probably * is not working for IIF.
Please help :
Value: CCur(IIf([INVCNO]="S*" And [INVCNO]="I*",[NetValue],-[NetValue]))
Neither does this work :
Value: Value: CCur(IIf([INVCNO]="C*",-[NetValue],[NetValue]))
I am using Access 2003.
thanks
karen