Hi,
I am a self taught novice at access 2003 and need some help formating a function in a query.
I have this function that is testing for certain criteria in my query
1490-2Q%: IIf([split]=-1 And [accounttype]="payroll" And [expr2]="unknown",[withdrawalamount]*0.17,[1490-2a]*[withdrawalamount]/100)
this returns an figure whether the [split] field is -1 or 0 - AND I NEED THE SPLIT TO BE "-1"
so I reworked my expression to the following:
TEST%: IIf([split]=-1,IIf([accounttype]="payroll" And [expr2]="unknown" Or 0,[withdrawalamount]*0.17,[1490-2a]*[withdrawalamount]/100),"")
and i get what I think I need but un formatted (not in currency format
any ideas on where i went wrong? thanks for any help out there...
Todd
I am a self taught novice at access 2003 and need some help formating a function in a query.
I have this function that is testing for certain criteria in my query
1490-2Q%: IIf([split]=-1 And [accounttype]="payroll" And [expr2]="unknown",[withdrawalamount]*0.17,[1490-2a]*[withdrawalamount]/100)
this returns an figure whether the [split] field is -1 or 0 - AND I NEED THE SPLIT TO BE "-1"
so I reworked my expression to the following:
TEST%: IIf([split]=-1,IIf([accounttype]="payroll" And [expr2]="unknown" Or 0,[withdrawalamount]*0.17,[1490-2a]*[withdrawalamount]/100),"")
and i get what I think I need but un formatted (not in currency format
any ideas on where i went wrong? thanks for any help out there...
Todd