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!

Incremental change `

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Hi, im using a data driven query task, and with one of the id columns i want to update that incrementally, I had in my mind that the active x script would be the below but it doesnt work :-(

help!

Function Main()

Dim GTID

GTID = DTSLookups("GetAdrID").execute 'look up to get maximum address_id in the table
GTID = GTID + 1


if idexists = "" then


DTSDestination("address") = DTSSource("ADDRESS")
DTSDestination("address_type") = DTSSource("ADDRESS_TYPE")
DTSDestination("address_id") =GTID
DTSDestination("zip_code") = DTSSource("ZIP_CODE")

Main = DTSTransformstat_InsertQuery
else
Main = DTSTransformstat_SkipRow

End If


End Function


Filmmaker, gentlemen and proffesional drinker



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top