• How did I miss that with all the reading about cursors... Thank you very much for the essential info about cursors.
    Is there an elegant solution or do I have to rewrite the whole code twice - before and after loop?