P.S. Also, please remove useless COMMIT from your code - it simply reset scope doing nothing. And describe the calculation logic - from your code it's not clear what you want to achieve.
Read How To: Ask questions about Script Logic issues
Vadim
P.S. Also, please remove useless COMMIT from your code - it simply reset scope doing nothing. And describe the calculation logic - from your code it's not clear what you want to achieve.
Read How To: Ask questions about Script Logic issues
Vadim