Updating items on a link

  • Thread starter Thread starter donald
  • Start date Start date
D

donald

Hi,

If you add a Contact (item) to another item say a Task and it put in
the subject of the original item as a link. Then the subject on the
Contact item get change how can I update the link so it as got the
updated information in it??

Thanks a lot

Dorling
 
A task linked to a contact through the Contacts box at the bottom of the task form does not depend on the name of the contact. You should still be able to double-click the underlined contact name and get the same information about that contact. If you're seeing some other behavior, tell us more.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I do get that behavior But the name on the Contacts has change and i
want to know how to update them??

thanks

Donald
 
You'd have to remove the existing link and add a new one. The code to update a single link on an item represented by an object named thisItem would be something like (untested):

Set objLink = thisItem.Links.Item(1)
Set objContact = objLink.Item
If Not objContact Is Nothing Then
If objLink.Name <> objLink.Item.FullName Then
thisItem.Links.Remove 1
thisItem.Links.Add objContact
thisItem.Save
End If
End If
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top