I haven't tested it yet. I just used // to let mark out what I don't want. Since DTS can use VBScript, could I use this code in DTS ActiveX? I'll test and see what happens. thanks