Hi!
I've a form with the fields PriceA, priceB, priceC and a field Total.
I set the source control of Total =priceA+B+C 'cause it's always the same operation and in this way I didn't need to write the same code in priceA_afterUpdate, priceB_afterupdate etc. and when I change a value of a price it can display auomatically the new value of total.
The problem is that I've another field FinalTotal which value depends on the value of Total and on other parameters linked to the OrderType (so I can't set FinalTotal=Final*parameter1 'cause it can be even =Total*(parameter2+parameter3) or =Total+(parameter4) etc.
I tried to write the code
"if OrderType=1 then... " in the Total_afterUpdate and in total_Change() events, but the field FinalTotal is always blank (I think 'cause there's no manual update or change).
Is it necessary copy the code in the PriceA_afterupdate, priceB_afterupdate etc? If they were only 3 i coud do it, but the parameters determining the field Total are a lot!
I've a form with the fields PriceA, priceB, priceC and a field Total.
I set the source control of Total =priceA+B+C 'cause it's always the same operation and in this way I didn't need to write the same code in priceA_afterUpdate, priceB_afterupdate etc. and when I change a value of a price it can display auomatically the new value of total.
The problem is that I've another field FinalTotal which value depends on the value of Total and on other parameters linked to the OrderType (so I can't set FinalTotal=Final*parameter1 'cause it can be even =Total*(parameter2+parameter3) or =Total+(parameter4) etc.
I tried to write the code
"if OrderType=1 then... " in the Total_afterUpdate and in total_Change() events, but the field FinalTotal is always blank (I think 'cause there's no manual update or change).
Is it necessary copy the code in the PriceA_afterupdate, priceB_afterupdate etc? If they were only 3 i coud do it, but the parameters determining the field Total are a lot!