Run DTS package from Access form

jbphoenix

Registered User.
Local time
Today, 04:18
Joined
Jan 25, 2007
Messages
98
I'm trying to run a dts package from an access form. Here is the code I have but i'm getting an error.

Code:
Dim dtsPackage As New DTS.Package
dtsPackage.LoadFromStorageFile "C:\POS.dtsx", ""
dtsPackage.Execute

Run-Time error -2147220220 (80040504) The Specified file is not a Package Storage File.
 
Hi there

.dtsx is a SSIS package not a DTS package, far easier to put the DTS / SSIS in a job and run sp_start_job instead
 

Users who are viewing this thread

Back
Top Bottom