Paulo:
Thank you so much.
I got this to work in a real world example.
The first screen shows where I make the calculation of @TTax. Its not an array, it is a single value.
The primary key of Invoices01b is rownbr.
The second screen shows the result.
It works!!
Thank you so much. This is code that I will be able to use in many places.
I have marked this as the solution.
Mike