Its quite east to run a DTS package from Access
Const SQL_DTS_ERROR = -2147220440
Public Sub RunDTS(strServer, strDTSName)
' Routine to run a DTS package from VBA
' Process will halt if a DTS error occurs
' and Display a MessageBox before Exiting
On Error GoTo Err_RunDTS
Dim pkg As New DTS.Package
pkg.LoadFromSQLServer strServer, , , DTSSQLStgFlag_UseTrustedConnection, , , , strDTSName
pkg.FailOnError = True
pkg.Execute
Exit_RunDTS:
Set pkg = Nothing
Exit Sub
Err_RunDTS:
If Err.Number = SQL_DTS_ERROR Then
MsgBox "Error in DTS Package: " & strServer & " " & strDTSName & Chr(13) & " was generated by " & Err.Source & Chr(13) & Err.Description
Else
MsgBox Err.Number & " " & Err.Description
End If
Resume Exit_RunDTS
End Sub