Hi Bhavbhuti
So all's well? You won't be the first to forget stuff like that and it won't be your last time :-)
Terry
>Hi Terry
>
>>It would help if we knew what data type THISFORM.ReplaceCodes(THIS.VALUE) is supposed to return.
>
>I had step through the code I stepped through it again and the value in the variable was always a string. The boo-boo came at the end where I had completely forgotten to a RETURN statement. Sorry about the trouble.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.