Has anyone had any luck using a lookup in a DTS transform. I swear that I'm
doing a direct translation of the example ('Performing Single-key Lookups
from an ActiveX Script' on the MSDN web site
http://msdn.microsoft.com/library/sdkdoc/sql/dtssamp_4.htm ) but I always
get the error: "An exception of type 'Microsoft VBScript runtime error:
Type mismatch: 'DTSLoopkus'' was not handled."
If anyone has an example that actually works I would be very grateful.
Other details of my project. The data source is an Excel sheet. The
destination is an Access db. The table being used for the lookup is also in
the same access db. Direct column mapping (or even doing direct mapping
using script) works fine.
For direct mapping the script is: DTSDestination("Project Name") =
DTSSource("Project Name")
Trying to use lookup my line is: DTSDestination("Project Name")
=DTSLookups( "ProjNameTOProjNum").Execute(DTSSource("Project Name").Value)
My lookup is: ProjNameTOProjNum
with SQL: SELECT ProjectNum
FROM Project
WHERE (ProjectName = ?)
Is there any other information I can provide?
If responding directly by email, please remove anti-spam measure.
Thank you in advance for your help.
Charley Rathkopf