• Your issue is wrapping the @images values with single quotes.

    You need to initialize @images to a blank string

    set @images = ''

    and your else statement should not put a single quote at the end

    set @images = @images + '\\waccounting\ffwin\images\vendor\ap invoice\' + @current_image

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]