DTS from Excel with empty cell
oriki9999
Date: 12/15/04
- Next message: Magnus: "Return Code from Execute Process Task"
- Previous message: Joseph Geretz: "Re: What's wrong with my ActiveX Script Task Syntax?"
- Next in thread: Allan Mitchell: "Re: DTS from Excel with empty cell"
- Reply: Allan Mitchell: "Re: DTS from Excel with empty cell"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 00:04:38 -0800
I have currently trying to import an excel spread*** with named cells
to SQL thr DTS..
My problem is that how to I skip those cell that are empty in the
spread*** using DTS activeX?
This is what I tried? (I have tried checking for isNull)
Function Main()
'Check for not Null
If trim(DTSSource("Field A"))=NULL Then
Main = DTSTransformStat_SkipRow
Else
DTSDestination("FIELD_A") = DTSSource("Field A")
end if
Main = DTSTransformStat_OK
End Function
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Magnus: "Return Code from Execute Process Task"
- Previous message: Joseph Geretz: "Re: What's wrong with my ActiveX Script Task Syntax?"
- Next in thread: Allan Mitchell: "Re: DTS from Excel with empty cell"
- Reply: Allan Mitchell: "Re: DTS from Excel with empty cell"
- Messages sorted by: [ date ] [ thread ]