I have an Access database that I am trying to run an SSIS package from. Here is the code I am using:
Dim wsh As Object
Set wsh = VBA.CreateObject("WScript.Shell")
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 1
wsh.Run "dtexec /f "J:\SQL Server Programming\SSIS\MyPackage\MyPackage.dtsx"", windowStyle, waitOnReturn
But whenever I run through the Access database, I get a Compile error: Expected: end of statement.
Can someone please tell me what I am doing wrong with this query? I am using a solution from this post:
Wait for shell command to complete
And I have searched through that post and could not find an answer that helped me with my issue. Any help is appreciated.