Multiple records with SUM of prices?

Hello,
I have a multiple records form and each row has a field price.
How can I create a function, that always show the SUM of all selected prices at the bottom of the form.
I can use a SESSION Variable for SUM and then show the variable at the bottom of layout.
There is no SUM option in the form itself.

Thanks
Uwe