treta
Technical User
- May 13, 2004
- 47
Hi
We changed from access97 and outlook97 to ACCESS2003 and OUTLOOK 2003.
Now when I'm trying to send msg the code stops and I have the msg "A program is trying to automatically send e-mail on your behalf"
How can avoid this?
The code I used in access97:
Set appOutlook = New Outlook.Application
Set outMailItem = appOutlook.CreateItem(olMailItem)
outMailItem.To = "Antonio;Teresa"
outMailItem.Subject = "some text"
outMailItem.Send
Set outMailItem = Nothing
Set appOutlook = Nothing
Thanks
Antonio
We changed from access97 and outlook97 to ACCESS2003 and OUTLOOK 2003.
Now when I'm trying to send msg the code stops and I have the msg "A program is trying to automatically send e-mail on your behalf"
How can avoid this?
The code I used in access97:
Set appOutlook = New Outlook.Application
Set outMailItem = appOutlook.CreateItem(olMailItem)
outMailItem.To = "Antonio;Teresa"
outMailItem.Subject = "some text"
outMailItem.Send
Set outMailItem = Nothing
Set appOutlook = Nothing
Thanks
Antonio