I am attempting to execute a DTS package from an MS Access DB.
1) I consulted this resource:
2) I added a reference to the "Microsoft DTSPackage Object Library" in my Access DB.
3) I added this code to the MS Access button:
Dim dtsp As New DTS.Package
dtsp.LoadFromSQLServer _
ServerName:="serverName", _
ServerUserName:="userName", _
ServerPassword:="userPassword", _
PackageName:="packageName"
dtsp.Execute
4) I am getting the error "DTS package does not exist". But I know that it DOES exist.
I would appreciate whatever suggestions you have for me.
1) I consulted this resource:
2) I added a reference to the "Microsoft DTSPackage Object Library" in my Access DB.
3) I added this code to the MS Access button:
Dim dtsp As New DTS.Package
dtsp.LoadFromSQLServer _
ServerName:="serverName", _
ServerUserName:="userName", _
ServerPassword:="userPassword", _
PackageName:="packageName"
dtsp.Execute
4) I am getting the error "DTS package does not exist". But I know that it DOES exist.
I would appreciate whatever suggestions you have for me.