Ms Access calls sql server DTS

M

Madhuri

How can I design a form in ms access which could call a DTS package in sql
server ? Also it should perform a certain procedure in msaccess.

Thanks
Madhuri
 
J

Joerg Ackermann

Madhuri said:
How can I design a form in ms access which could call a DTS package
in sql server ?

Try:

Sub DTSExecutePackage()
Dim dtsPackage As New DTS.Package
dtsPackage.LoadFromStorageFile "F:\ACCESS\DTSSAMPLE.dts", ""
dtsPackage.Execute
End Sub

A reference to "Microsoft DTSPackage Object Library" is nessesary.


Acki
 
M

Madhuri

The problem with MsAccess form coding is that it dosent show me any
components or references to add from. Any idea on where to add these
references ?

Madhuri
 
J

Joerg Ackermann

Madhuri said:
The problem with MsAccess form coding is that it dosent show me any
components or references to add from. Any idea on where to add these
references ?

In VBA-Ediitor - Tools - References


Acki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top