CDO Updating Outlook Contact information

J

John Galt

I have written a routine that reads Outlook contact information via CDO.
In the contact(in the Body Text) is a log of activity.

I read this data in and display it in a grid. So far so good.
After I take a new action (Send Auto fax) I want to update the body text to
say "2004-02-06 - Sent Auto fax".
I set a variable called BodyComment to this text.

I start a new Mapi Session and Find the contact in the proper folder.
I update CdoPR_BODY with BodyComment . i.e.
Objfields.Item(CdoPR_BODY).Value = BodyComment & vbCr & vbLf
& Objfields.Item(CdoPR_BODY).Value
objmessage.Update


When I refresh my grid the text is there. So far so Good.

The problemn is that when I go into Outlook and look at the body, in the
Outlook contact form, there is NOTHING there.

Anybody have a clue?
 

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