Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTSLookup type mismatch problem

Status
Not open for further replies.

harpsw

Programmer
Apr 19, 2001
5
US
I need some help getting a DTS Lookup to work.

Using SQL Sever 7.0, my data source is a text file.
One of the fields is a date (text data type). In
addition to loading this date (which works fine), I
need to set a second field to the fiscal month of this
date. Since we run on a 4-4-5 fiscal period, I have
another table that contains the crossref of dates and
fiscal months. I created a DTS lookup using a separate
connection:

SELECT FYMTHNBR
FROM CONVERTDATES
WHERE (DATE = ?)

The activex script for the fiscal month column is:

DTSDestination("FYMTHSHIPBY") = DTSLookups("GetFYMth").Execute(DTSSource("Col004").Value)
Main = DTSTransformStat_OK

I only get a Type Mismatch: 'DTSLookups'

FYI - I've changed all involved fields to type CHAR and still received the error.

Any help would be appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top