Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Outlook - Retrieve contact folder details from additional mailbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave K - 02 Nov 2006 12:07 GMT
Hi All,

I am trying to extract all the contact details from outlook but not on my
default mailbox. I have an additional mailbox named "Route Planning HD".
My code works fine for my default mailbox so the problem isnt there its just
directing access to look in a different place that i'm having the problem
with.

I am using the following to direct access to the default folder:

Set olMAPI = OutlookNS.GetDefaultFolder(olFolderContacts)

And i "think" i need to be using the following to direct it to an additional:

Set olMAPI = OutlookNS.GetSharedDefaultFolder("Route Planning HD",
olFolderContacts)

Anyone have any ideas why the second line doesnt work or how to make it
work? I guess the answer is to set "Route Planning HD" as a recipient object
but i dont seem to be able to get this to work correctly.

Kind regards & Thanks,
-Dave-
Dave K - 02 Nov 2006 12:31 GMT
Hi Again all!

Ok i have finally manage to get the  .GetSharedDefaultFolder  to work
correct by setting the first variable as a recipient. as i stated below.

My problem now is that it says it cant find the contacts folder. I know it
is pointed in the right direct as i have tried changing it to olmailitem and
deleting all my mail and it finds nothing, then putting mail in that mailbox
and it finds it.
So with that all said i know its looking at the right place but just cant
find the contact folder. There is no naming issues as it is simply called
Contacts as standard.

Any advice would be great!
Thanks,
Dave

> Hi All,
>
[quoted text clipped - 19 lines]
> Kind regards & Thanks,
> -Dave-
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.