ok, I should have said "how to do it in an ActiveX DLL", as I've converted my ASP code into a ActiveX DLL, so the source-code will be secure :) Regards, Craig.