![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
a dts package tries to use an activex script to change the file name of a connection to an access database. The activex script fails. this is the script - any idea what is wrong? Function Main() Dim objFSO, strFullNm Set objFSO = CreateObject ("Scripting.FileSystemObject") strFullNm = DTSGlobalVariables("MDB Filename").Value if objFSO.FileExists(strFullNm) Then MsgBox strFullNm + "Exists" Dim oConn Set oConn = DTSGlobalVariables.Parent.Connections ("Reconciliation_History") oConn.DataSource = DTSGlobalVariables("MDB Filename").Value Set oConn = Nothing Main = DTSTaskExecResult_Success else MsgBox strFullNm + "Nope" Main = DTSStepScriptResult_Failure end if Set objFSO = nothing End Function tia, dk |
![]() |
| Thread Tools | |
| Display Modes | |
| |