>Boris solved the same problem for me before - I needed to put the statement into execute('myStatement') which made it a separate batch and allowed the whole script to work correctly.
Yes, but in the big script I had, I had to execute variable to be able to complete that successfully. The first approach was ok for just a few lines. But, I needed to fine tune more for the entire script.