Stayingahead
IS-IT--Management
I am pulling financial info from a "table view" from our central office. Problem is all transaction amounts show up as a positive figure. I need to write an IIF statement to show Voided Deposits and withdrawls as negative figures. Below is all the codes I have to include or work with.
TransactionTypeCode TransactionTypeTxt
D Deposit
DC Deposit-Consumer
W Withdrawl
VDC Void Deposit Consumer
TW Transfer Withdrawl
VW Void Withdrawl
VDP Void Deposit Program
VD Void Deposit
TD Transfer Deposit
DP Deposit Program
Below is the IIF statement I wrote, but is not returning any amounts. What do I need to do different to get my amounts to show up correctly?
Transactions: IIf([transactiontypecode]="w",IIf([transactiontypecode]="TW",IIf([transactiontypecode]="vdc",IIf([transactiontypecode]="vdp",IIf([transactiontypecode]="vd",[transactionamt]*-1,[transactionamt]*1)))))
Also, can you write an IIF statement using the "*" wildcard character?
TransactionTypeCode TransactionTypeTxt
D Deposit
DC Deposit-Consumer
W Withdrawl
VDC Void Deposit Consumer
TW Transfer Withdrawl
VW Void Withdrawl
VDP Void Deposit Program
VD Void Deposit
TD Transfer Deposit
DP Deposit Program
Below is the IIF statement I wrote, but is not returning any amounts. What do I need to do different to get my amounts to show up correctly?
Transactions: IIf([transactiontypecode]="w",IIf([transactiontypecode]="TW",IIf([transactiontypecode]="vdc",IIf([transactiontypecode]="vdp",IIf([transactiontypecode]="vd",[transactionamt]*-1,[transactionamt]*1)))))
Also, can you write an IIF statement using the "*" wildcard character?