>>Why do you need those single quotes on 'StockDetail' and on
'<<cIvdCode>>'
?
>
uups. Did not think of that...
It just looked a bit strange to me. I would normally put just table name without quotes.
Moreover, I was expecting some error when putting quotes around table name, but this works anyway.
Mu bad :)
I would however prefer prefer direct string construction as apposed to textmerge when it comes to constructing script code.