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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Outlook from Access

Status
Not open for further replies.

icoxy

Technical User
Apr 20, 2007
11
GB
Hi,

I am new to vba programming and I am using Office 2003. I want to store emails on a network drive using Access. I found a useful start in these forums, but I am having problems.

The code contains the following:

Dim olApp As Outlook.Application
Dim olExp As Outlook.Explorer
Dim olSel As Outlook.Selection

I get error messages indicating the Outlook is an undefined user defined type.

Is this command format OK for Access 2003?
How do I identify Outlook as an application and access its libraries?

Thanks
 
You have to reference the Microsoft Outlook Object Library:
when in VBE menu Tools -> References ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top