Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

myitem.body works in Access/Outlook 2003 but not 2002

Status
Not open for further replies.

alexisb

Programmer
Apr 5, 2001
100
0
0
US
The following logic works in Access 2003/Outlook 2003 PC but doesn't work in Access 2000/Outlook 2002. This is the same database on two different machines. The email is sent in both cases but the message part of the email is blank in Access 200/Outlook 2002.

In Access 2003 I use the Outlook 11.0 Obj library. When I open the same database in Access 2000, I change the library to Outlook 10.0 Obj library.

Is anyone familiar with this issue?
-------------
Note: All variables, etc are defined before this.
With myItem
.Importance = intImportance
.To = stremailrecipients
.subject = strsubject
.ReadReceiptRequested = False
.Body = strmessage
End With
myItem.Send
-------------
Thanks,
Alexis
 
Try using .TextBody instead of .Body.
I am running Access 2002/Outlook 2002. I reference Microsoft CDO for Exchange 2000 Library, so this is a different implementation, but it may be worth a shot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top