Capturing data from Address List

  • Thread starter Thread starter miaplacidus
  • Start date Start date
M

miaplacidus

I have an Access application that can search my contacts
list and capture current phone numbers and emails. Not
everyone in my Global Address List is also in my contacts
list.

I modified my application so I can open an item in the
Global Address List using AddressEntry.Details but I
cannot capture the data from the modal window to add to my
Access Application.

The window has a button to add that into to my contacts
list, so that would be a possible work-around, if I knew
how to access the button.

Any suggestions?
Is this leading me to work with the Windows API?
 
If you already have a reference to the AddressEntry, why do you need to
display the Details dialog? Couldn't you just access the AddressEntry's
fields?

In any case, you may want to use ADSI to access the GAL, instead of Outlook.
See http://www.outlookcode.com/d/adsi.htm for references.
 
I was able to access the AddressEntry fields as long as I
was using my local contacts list. When I went to the
Global Address List it wouldn't work anymore - I couldn't
access the fields, or I don't know how. The only items
available under AddressEntry that showd the fields that I
could find was AddressEntry.Details, which of course only
presnts a modal dialog box.

Is there something different about the local contacts list
and the Global one?

I read a lot of hoopla about how great ADSI is but nowhere
do I see what it does or how it works. Anyway, I may have
trouble getting permission to install it in this
environment.
 
I can't find any reference to fields under AddressEntry.
ContactItem has lots of fields, but ContactItem isn't
listed in the Outlook object model. What's the difference
betwwen a ContactItem and an AddreeEntry, anyway?
 
AddressEntry is a property of the Recipient object, which represents an
electronic address. ContactItem is a broader data object for storing more
information about contacts in a Personal Folders .pst file or Exchange
folder.

To get access to GAL fields, you need to be using AddressEntry under CDO,
not the Outlook object model. You can then use its Fields collection; see
http://www.cdolive.com/cdo10.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top