accessing Outlook contacts using ADO

  • Thread starter Thread starter tmaster
  • Start date Start date
T

tmaster

I can access Outlook contacts from VB using ADO, by connecting as follows:

ConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;Exchange
4.0;MAPILEVEL=Outlook Address
Book\;PROFILE=Outlook;TABLETYPE=1;DATABASE=c:\temp"

This works for my Outlook 2002. Will it work for MS Outlook XP and MS
Outlook Express 4.0+ ?

Thanks
 
Forget about Outlook Express, there's not much you can do with it.

Accessing contacts with ADO gives you only about 44 fields of a
contact item and not all are named the same as the Outlook fields.
Supposedly there's a way to get more fields but no one I know has ever
been able to make it work. Access would be the same for Outlook 2002
as 2000 except some of the fields would trigger the security prompts.

It's easier and more effective to access Outlook's contacts using the
Outlook object model.
 
Back
Top