![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a simple DTS package that moves data from a flat file to a table. It does very little scrubbing. Here is the ActiveX code: Function Main() DTSDestination("ColA") = DTSSource("Col002") DTSDestination("ColB") = left(DTSSource("Col003"), 4) &"-" & right(DTSSource("Col003"), 2) DTSDestination("ColC") = DTSSource("Col004") DTSDestination("ColD") = DTSSource("Col005") Main = DTSTransformStat_OK End Function Occasionally the datum in DTSSource("Col003") will be invalid for its intended destination column. What I want is if an error occurs (due to an invalid piece of data) for the package to just skip over that row. How do I accomplish this? TIA |
![]() |
| Thread Tools | |
| Display Modes | |
| |