User defined field - Office

D

dht

How do I get a user defined field to refer to the "office" field in the
address book.

This is using outlook 2000 with exchange server.

Thanks
Dave
 
S

Sue Mosher [MVP-Outlook]

Please clarify what you're trying to do and in what Outlook version.
 
D

dht

Sorry outlook 2000.

When your creating a custom form you can set up user defined fields taht you
can enter data into. You can also drag fields like To: and From: etc.

In the form I am creating I use the From: field to show who sent the form.
But I would like to also show what office and title they are as in the
information held in the address book. The form is for internal use only.

Is this possible?

Thanks
Dave
 
S

Sue Mosher [MVP-Outlook]

An Outlook item can display only the information stored in the item. It's
easy to add a custom field and call it whatever you want through the Field
Chooser. The additional piece that your form would require would be code --
probably in the Item_Send event handler -- to look up the current user's
record, get the data from the desired properties, and set the values of the
custom proerties in the item.

You can perform this lookup with CDO 1.21 or, to avoid security prompts,
with Redemption (http://www.dimastr.com/redemption/) or possibly also with
ADSI (see http://www.outlookcode.com/d/adsi.htm). See
http://www.cdolive.com/cdo10.htm for a basic primer on working with MAPI
property tags that applies to both CDO and Redemption; the AddressEntry
object contains the fields you're interested in.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

dht

Thanks,

Will have a look.

Are Redemption and similar suitable for use on a corporate network as I'll
have to persuade the Network Administrator to allow it. Which could be
tricky

Rgds
David
 
S

Sue Mosher [MVP-Outlook]

Redemption is just a wrapper for Extended MAPI. The Redemption web site
explains how to secure it.

--
Sue Mosher, Outlook MVP
Author of
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