Hello,
when using my pc with EM installed i can run this code from my access db just fine, but when logged in as a domain user on a different pc i get an activex can't create object error.
I've checked the sql server permissions and have given domain users privlidges for that database. I've also made sure that dtspkg.dll is referenced in VB.
Users have no problem running other VB codes.....?
Any ideas?
thanks
when using my pc with EM installed i can run this code from my access db just fine, but when logged in as a domain user on a different pc i get an activex can't create object error.
I've checked the sql server permissions and have given domain users privlidges for that database. I've also made sure that dtspkg.dll is referenced in VB.
Users have no problem running other VB codes.....?
Any ideas?
Code:
Private Sub SendCmd_Click()
Dim dtsp As New DTS.Package
dtsp.LoadFromSQLServer _
ServerName:="The-server", _
ServerUserName:="user", _
ServerPassword:="*****", _
PackageName:="TheDTSPackageName"
dtsp.Execute
End Sub
thanks