>George,
>
>Tell me about it!
>
>I kept my comments to the subject of the thread but you can see what a nightmare this code has been. Even certain tables being opened, closed, opened again, opened each time thro' a loop, numbered work-area - the lot.
>
>As for rewriting the code, funny you should say that but I'm overdue to rewrite the whole system, from scratch, and it's agreed that I shan't be converting/reworking any of the old code. My task here (which I've sussed now) was a fix to a bug in the current, used system.
>
Terry,
I kind of noticed it in your code sample.:-)
George
Ubi caritas et amor, deus ibi est