You have to write code to get the related contact from the TaskItem.Links
collection, get the desired property value, and set the corresponding
property value in the task. For a VBA example, see
http://www.outlookcode.com/codedetail.aspx?id=566
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"DStrube" <(E-Mail Removed)> wrote in message
news:AEAE8127-33EB-4ED3-9699-(E-Mail Removed)...
> How do I display Contact fields in a Task, specifically in Outlook 2003,
> using a vb script to capture the properties of a Contact that is set for
> this
> task?
>
> For example, if I have a contact called CustomerA that includes fields
> like
> CustomerNumber, and I have a task called "Bug discovered in product today"
> with the contact set to CustomerA, and in the vb script code for this Task
> form I want to display the CustomerNumber of CustomerA, how can I do that?
>
> I've been searching the web for a few hours looking for an answer to this
> question, and every place I've looked either doesn't address it or
> suggests
> it simply isn't possible.
>
> Is this possible?
>
> Thanks