Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access my Outlook Address Book

Status
Not open for further replies.

soupisgood84

Technical User
Apr 17, 2007
45
US
Just a quick thought......
Is it possible to access my Outlook Address Book from a form in Access?

I am going to send a monthly report and I have a form that lists the address of the recipients, but I would like to have an option to select other people from my address book.

Any ideas......Thanks!
 
Yes.

You need to link to or import your contacts from outlook, first, into a table.

Like this:

Access Main Window:
Files Menu
->Get External Data
->Import
->In next window, choose from "Files of type", Outlook
->You'll then be prompted for what folder(s) you want to import.

I didn't check this with "link" instead of "import", but I would guess that will work the same.

--

"If to err is human, then I must be some kind of human!" -Me
 
That works....but the latency on it is huge.

Is there a way to access Outlook directly? I am thinking along the lines of the pop-up that the Address Book app does on Outlook.
 
I think this is the closest you can get, outside of using a connection object (SQL and VBA) to Outlook. The VBA helpfile has a lot of information along those lines if you want to try that route.

--

"If to err is human, then I must be some kind of human!" -Me
 
Here are a few notes, but a link may be the best bet.

Code:
Dim olApp As Outlook.Application
Dim olMapi As Outlook.NameSpace
Dim olFolder As Outlook.MAPIFolder
Dim olItems As Outlook.Items

Set olApp = New Outlook.Application
Set olMapi = olApp.GetNamespace("MAPI")
Set olFolder = olMapi.GetDefaultFolder(olFolderContacts)
Set olItems = olFolder.Items


For I = 1 To olItems.Count
Debug.Print olItems(I)
Debug.Print olItems(I).FullName
Debug.Print olItems(I).Email1Address
Next I
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top