---
title: "Run SSIS in Access Macro"
author: "tjj006"
date: "2014-02-14T14:34:36Z"
tags: ["VBA"]
categories: ["数据库"]
slug: "run-ssis-in-access-macro"
draft: false
lastmod: "2014-02-14T15:50:19Z"
id: 2017357
url: "https://tjj006.iteye.com/blog/2017357"
---

Make sure you select 'Microsoft DTS Runtime 1.0' in Tools --&gt; Refereces...

![](http://dl2.iteye.com/upload/attachment/0093/8553/07095fdc-8c3e-3f84-aedb-26139768467b.jpg)

 

```
'Sub to run a DTEXEC cmd to kick off an SSIS Package

Dim strCmd As String
strCmd = "dtexec /f ""C:\MyPackage.dtsx"""
Call Shell(strCmd, 0)
```

   
 Reference:

 http://msdn.microsoft.com/en-us/library/ms162810.aspx