Thanks Harm, I now return a "Y" or a "N" in the function and got it working.

John