Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to catch up the error message

Status
Not open for further replies.

Wrinn

MIS
Apr 30, 2001
18
HK
Dear,
I've created a DTS package to transfer data. For each step of pakage I'd like to catch up the error message and write it into one file. I've tried to add one active script after each step (on failure).
I coded as below
...
Set Myfile = fso.CreateTextFile("C:\Test.text",True)
Myfile.Writeline (Err.Number&Err.Description)
...

However I'm so wonder why did i get only the error code '0' and blank for error description?
Does anyone know how to catch up the error message?

Thnx in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top