I think I understand what's going on here. If no comma is found in s, the Left() function would get -1 as the second argument, which may cause some problems, I guess. I'll have to Replace() the comma with nothing.Thanks for your response, Blue. I don't know why it works for you, maybe version differences. I'm not sure how to get the version number for my IIS server, but the under the Default Website Properties, on the Server Extensions tab, I see version 4.0.2.6513.