>Cetin,
>
>I have inserted a breakpoint just before the output function and cannot find anything wrong with the code. I cannot access the output code as it is protected.
>
>I was just thinking if the SubStr Function (I am only using it once in the code) is not giving the error then what is.
>
>thanks,
>
>Jason
Jason,
Maybe you're not providing a required parameter to the function and the function doesn't have a buletproof check on parameters.
Cetin