![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using a DTS import, and trying to get the sucker to determine which is the later date and use that for importing. I know I successfully did this before, but now can not re-create it. The error I get is: "Error Description: Invalid procedure call or argument: 'DTSSource' Error on Line 6" It parses just fine, but DTS doesn't like it. The code I am using is: ********* Visual Basic Transformation Script ********* ' Copy each source column to the detination column Function Main() If DtsSource("EffDate1") <= DTSSource ("EffDate2") Then DTSDetination ("EffDate") = DTSSource("EffDate2") End If If DtsSource("EffDate1") > DTSSource ("EffDate2") Then DTSDetination ("EffDate") = DTSSource("EffDate1") End If Main = DTSTransformStat_OK End Function Thank you so much for your thoughts! |
#3
| |||
| |||
|
|
I am using a DTS import, and trying to get the sucker to determine which is the later date and use that for importing. I know I successfully did this before, but now can not re-create it. The error I get is: "Error Description: Invalid procedure call or argument: 'DTSSource' Error on Line 6" It parses just fine, but DTS doesn't like it. The code I am using is: ********* Visual Basic Transformation Script ********* ' Copy each source column to the detination column Function Main() If DtsSource("EffDate1") <= DTSSource ("EffDate2") Then DTSDetination ("EffDate") = DTSSource("EffDate2") End If If DtsSource("EffDate1") > DTSSource ("EffDate2") Then DTSDetination ("EffDate") = DTSSource("EffDate1") End If Main = DTSTransformStat_OK End Function Thank you so much for your thoughts! |
![]() |
| Thread Tools | |
| Display Modes | |
| |