<< The code is for my eyes only so as long as it works and I understand it that is OK for me. >>
There's no such thing -- there's _always_ someone who comes after you (unless you're writing your application for obsolescence). That other person may be you a year from now, but someone is going to have to look at that code some day. Make a stored procedure to do the replacements for you. -- Larry

