IIF(And( [Units]<>"",[Amount(USD)]<>"", [Duty1]<>"",[Freight(USD)]<>"",[ Other]<>""),"Cost Final","Cost Not final")
Error i am getting on running query " The expression you entered contains invalid syntax"
IIF(And( [Units]<>"",[Amount(USD)]<>"", [Duty1]<>"",[Freight(USD)]<>"",[ Other]<>""),"Cost Final","Cost Not final")
Error i am getting on running query " The expression you entered contains invalid syntax"
What are you trying to do in plain english, then we can try to set up an expression.
I am doing in expression. I am saying if all these fields are not null then say cost is final otherwise cost is not final
Try this
IIF(Not IsNULL([Units] AND Not isNUll([Amount(USD)]) And Not IsNull([Duty1]) and Not IsNull([Freight(USD)]) and Not isNull([ Other]),"Cost Final","Cost Not final")
Thanks it's worked.
If i want to enter one more criteria for example country field equal to China. How i will write?
add it to the list same format
[country]="China" its not working
I am waiting please help
What is it you want to do?
IIF(Not IsNULL([Units] AND Not isNUll([Amount(USD)]) And Not IsNull([Duty1]) and Not IsNull([Freight(USD)]) and Not isNull([ Other]) and [country]="China" ,"Cost Final","Cost Not final")