Populate Company field from Contact field in custom task form

D

Dave C.

Using Outlook 2002 or 2003, creating a custom Outlook form based on the
Outlook default Task form. On page 2, I want to select a contact from
the Contacts folder. Then, I want a second field COMPANY to
automatically populate with the chosen contact's company name. I've
been through the Help file, online searches, and an Outlook book and I
think it's too simple to even be an example. But no matter how I set up
the Value and Validation properties of the Company text box, I cannot
get it to do the lookup and auto-populate. I have unsuccessfully tried
placing the Contacts and Company control and fields on a frame, and
also tried to calculate the value using a formula. Any idea what I am
doing wrong?

Controls and fields were dragged and dropped from Field Chooser,
Frequently-used fields. Properties of these fields:

CommandButton1:
(Choose Field): Contacts
(Type): Recipient

_RecipientControl1
(Choose Field): Contacts
(Type): Recipient

TextBox13
(Choose Field): Company
(Type): Keywords
(Property to use): Value
 
S

Sue Mosher [MVP-Outlook]

You'd have to write code to populate that field, not use a formula. The example at
http://www.outlookcode.com/codedetail.aspx?id=566 is for VBA not form code, but it shows the basics of how to use the Links collection for this.

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

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

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