When Windows NT connects to the printer, it may copy printer driver files to the local computer. If the user does not have permission to copy files to the appropriate location, ADDPRINTERCONNECTION fails, and @ERROR returns ERROR_ACCESS_DENIED

check @error, @serror after you call AddPrinterConnection. what is @serror returning?
_________________________
Home page: http://www.kixhelp.com/hb/