Hi,
Thank you for the replies.
I have managed to write the script.
I will try and be more specific and give better examples in future.
I have had problems with links and pasting code today.
For future reference, how do i "surround code with the code-SQL formatted on the left of the edit box" ?
Thanks for your patience,
Q