contact fields

D

daave.net

i want to do on custom form something like this:

1. have button, what opens window where i can choose contact from my
Contacts in Outlook
- i have it done (i assigned field Contacts to it)

2. when i choose some contact, i want to copy some information from it to
textboxes on form
- i dont know how to do it

Thanks
 
H

Hollis D. Paul

1. have button, what opens window where i can choose contact from my
Contacts in Outlook
- i have it done (i assigned field Contacts to it)
I am not sure how you have done this part, but when that dialog window
closes, you should have an object pointer to the contact item in
question. Using that object pointer, you can extract the value of any
Outlook property of the contact item.

If the Window dialog only returns a contact name, then you have to
search the contact folder, in code, to find the contact with the
selected name. This will give you an object pointer to the contact
item, which you will use to extract the value of which-ever Outlook
property you want to copy.

Take a look at http://www.outlook-code.com/d/outtech.htm for more
information about how to do all this.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Mukilteo, WA USA
 

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