• Matt Whitfield (11/16/2009)


    Indeed

    I also realised why it can't work in a 'loop till it's finished' kind of way - because if you did REPLACE(expression, ' ', ' ') then it would never terminate...

    M

    ?

    but loop until no more double spaces is ok as in function fn_CleanUp?