![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Thanks to a lot of help and time put in by Allen, ive managed to get to the stage where i have an ActiveX task setting the properties for a custom |
|
The cystom task is set to disabled, and im using the ActiveX task to set the thw file names and set the step te disabled = false. In the DTS designer |
|
execption_Access_violation the activex task is as follows Function Main() ' select type of file and enable the tasks as required dim pkg dim tsk dim stpSetTask dim stpCustDll set pkg = DTSGlobalVariables.Parent set stpSetTask = pkg.Steps("DTSStep_DTSActiveScriptTask_7") set stpCustDll = pkg.steps("DTSStep_ConvertFileForSQL.ClsConvert_1" ) set tsk = DTSGlobalVariables.Parent.Tasks("DTSTask_ConvertFi leForSQL.ClsConvert_1") tsk.Properties("OrigionalFileName").Value = DTSGlobalVariables("gv_FileFullName").Value tsk.Properties("NewOutputFileName").Value = DTSGlobalVariables("gv_TempFile").Value stpCustDll.DisableStep = False stpSetTask.DisableStep = False stpCustDll.ExecutionStatus = DTSStepExecStat_Waiting Main = DTSTaskExecResult_Success End Function Any pointers on where to look ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |