Send Outlook Msg form Access

D

Debbie

Hello,
I have Access 2003 and I'm trying to create an Outlook email from Access.
I have the following code:

Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim MsgText As String

'Create the Outlook session
Set objOutlook = CreateObject("Outlook.Application")

'Create message
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)


I get a run time error 429 "ActiveX component can't create object". Can
anyone give me a hint as to what I'm doing wroing? Thanks, I have exhausted
all my resources!
Debbie
 
S

Sue Mosher [MVP-Outlook]

DO you have an anti-virus application running with an email-related component
that blocks scripting? That would block CreateObject.
 
D

Debbie

Sue,
I do have Norton AntiVirus but I don't see anything in the options menu that
talks about scripting. Would it be called anything else? Could there be
something in Outlook I need to change? I looked there but nothing looked
like the cuprit. Any other thoughts? Thanks,
Debbie
 
S

Sue Mosher [MVP-Outlook]

That's almost certainly it. I don't have NAV installed here, so I can't tell
you exactly where to find the setting. You may need to use Help or check
Symantec's web site.
 

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