OK that's cool. I posted the wrong code with the quotation marks around my last variable in the use statement. I had changed it once I started to troubleshoot.

I was just wondering if you could elaborate on why a UDF is better than a gosub. Are they more efficient with memory? I use the gosub to cut down the # of lines in the script, but am wondering if there is a performance or other gain from using a UDF.

Ooooh! I didn't even see that I missed the Exit statement!!! Ooops! Sorry to waste your time!

[ 28. February 2003, 18:08: Message edited by: Kellar ]