Redemption CreateItem method

M

Mark Weiler

I have an Access 2003 database running on Windows XP.
I am trying to programmatically send emails using Outlook 2003. Of
course I get the annoying dialog boxes.

I installed Redemption, registered it, and used some of their code from
their website. Particularly:

Dim SafeItem, oItem
Set SafeItem = CreateObject("Redemption.SafeMailItem")
Set oItem = Application.CreateItem(0)
SafeItem.Item = oItem

However when I compile or run the code I get an error for the CreateItem
method.

"Method or data member not found"

What am I doing wrong?

Thanks a ton if you can help

Mark Weiler


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

If this code is running in Access VBA, then the Application object would
refer to Access, not Outlook. You'll need to instantiate an
Outlook.Application object.
 

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