DTSLookups Error

  • Hi All,

    Using the DTS designer, i tried an ActiveX script using DTSLookups, it fails with the message that there is a "type mismatch: DTSLookups".

    Why this error comes and how to rectify it?(I have SP 2.)

    here is the query and code i have used. pls let me know

    Query:

    SELECT Name FROM emp WHERE (Sal = ?)

    Script:

    Dim myName

    Set myName = DTSLookups("My_Query").Execute(DTSSource("Sal").Value)

    Pls let me know where & what is the fault

    Thanx

  • This was removed by the editor as SPAM

  • Hi,

    Take out "set"

    Dim myName

    myName = DTSLookups("My_Query").Execute(DTSSource("Sal").Value)

    Is this an array? Then

    DTSDestination("col001")= myName(0)

    DTSDestination("col002")= myName(1)

    ...

    Johnny

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply