kgittinger
asked on
How to write an if - else if statement in an access 2003 query using the expression builder?
How to write an "if" - "else if" statement with the expression builder for a query?
The logic for the field is [Over30]:
If debits of 0-60 days >=Balance
Then if (bal-Current)>0, [Over30] = (Bal-current) , 0
Else [Over30] = debits of 0-60-current.
I have tried :
Over30: IIf([SumOf30To60DayDebits] >=[Balance ],(elseIIf ([Balance] -[CURRENT] >0,[Balanc e]-[CURREN T],0),[Sum Of30To60Da yDebits]-[ Over 30]))
I receive syntax error (comma) in query expression.
Thanks so much!
The logic for the field is [Over30]:
If debits of 0-60 days >=Balance
Then if (bal-Current)>0, [Over30] = (Bal-current) , 0
Else [Over30] = debits of 0-60-current.
I have tried :
Over30: IIf([SumOf30To60DayDebits]
I receive syntax error (comma) in query expression.
Thanks so much!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent
ASKER
Puppydogbuddy:
Thank you for the additional explanation. I had already accepted the previous answer.
Regards
Thank you for the additional explanation. I had already accepted the previous answer.
Regards
Over30: IIf([SumOf30To60DayDebits]