Gurus DTS -
03-24-2008
, 03:10 PM
I need to check whithin an exists DTS source fild, i have the next code VB,
but it made error message is " No match the types : 'exists' "
Any help will be great
Thank you.
'************************************************* *********************
' Secuencia de comandos de transformacin Visual Basic
'************************************************* ***********************
' Copia cada columna de origen a la columna de destino
Function Main()
If exists (DTSSource("Col004")) Then
DTSDestination("Campo04") = DTSSource("Col004")
end if
DTSDestination("Campo03") = DTSSource("Col003")
DTSDestination("Campo02") = DTSSource("Col002")
DTSDestination("Campo01") = DTSSource("Col001")
Main = DTSTransformStat_OK
End Function |