((100-(IIF(Prodgroup.lreject1,Insulators.rej_perc1,000.0)+; IIF(Prodgroup.lreject2,Insulators.rej_perc2,000.0)+; IIF(Prodgroup.lreject3,Insulators.rej_perc3,000.0)+; IIF(Prodgroup.lreject2b,Insulators.rej_perc2b,000.0)))/100) AS rejectcostdividerto avoid the field size change from value 0 to a higher value with decimals and the problem is gone.This also works in VFP8.
>>Use appdata!lv_ins_operations Nodata >>Requery('lv_ins_operations') && error 1494 >>>>I have found out that if I take the following code out from the view definition the error goes away
>>((100-(IIF(Prodgroup.lreject1,Insulators.rej_perc1,0)+; >>IIF(Prodgroup.lreject2,Insulators.rej_perc2,0)+; >>IIF(Prodgroup.lreject3,Insulators.rej_perc3,0)+; >>IIF(Prodgroup.lreject2b,Insulators.rej_perc2b,0)))/100) AS rejectcostdivider >>>>