I have a calculating, unbound control that I am trying to get if statements (nested) to work in.<br><br>This is my problem....the first works fine, the second works fine and it will be me the qty * the unitprice correctly. However, the third statement (AR) gives me an error.<br>#1 - Works great<br><br>=IIf(CharSearch([qty],"-"
," ",IIF(
Code:
=”Lot”,[unitprice],[qty]*[unitprice])<br><br>#2 - At "ar" gives error, otherwise works<br><br>=IIf(CharSearch([qty],"-")," ",IIF([code]=”Lot”,[unitprice], ],IIf([Code]="AR",[UNITPRICE], [qty]*[unitprice])))<br><br>#3 - did this when I thought I was on the right track.<br><br>My original code was: =IIf(CharSearch([qty],"-")," ",IIf([Code]="LOT",[UNITPRICE],IIf([Code]="AR",[UNITPRICE],IIf([Code]="LOTNSP","NSP",IIf([Code]="NSP","NSP",IIf([Code]="TBD","TBD",IIf([Code]="NC","N / C",IIf([Code]="Title"," ",[QTY]*[UNITPRICE]))))))))<br><br>But I had to take it appart to see where the errors are. I am not very familiar with working this at all and could use your expertise here. Do I have too many nested statements or just what is my problem with this?<br><br>Yes, the (CharSearch) is in a module (created by someone else)and works well.<br><br>Thanks in advance for all your help. <p>Lanie<br><a href=mailto:etroidl@conaxfl.com>etroidl@conaxfl.com</a><br><a href= > </a><br>