Hi, I changed the [carpet] to "carpet" - no effect at all. :(
the code is in the sub form in a text box.
it works fine without the sum() around it.
here is is again..
=Sum(IIf([type]="carpet",[addtotal]-[addtotal]/100*(Forms!jobs!Frame33),[addtotal]))
the text box still displays
#error...