RE: Referencing Field in Package -
04-27-2005
, 02:43 AM
Hello,
You can assign the value of CLng(DTSSource("Col010")) to a variant to
resolve the issue. I have tested the method on the Categories table in the
Northwind database and it works fine.
For your reference, the test code is as followings:
Function Main()
Dim field
field=DTSSource("CategoryID")
If field <0 then
DTSDestination("CategoryID") = 0
else
DTSDestination("CategoryID") =field
end if
DTSDestination("CategoryName") = DTSSource("CategoryName")
DTSDestination("Description") = DTSSource("Description")
DTSDestination("Picture") = DTSSource("Picture")
Main = DTSTransformStat_OK
End Function
I hope the information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights. |