Solved

unable to recognise MAPI - missing reference?

Posted on 2004-08-13
4
577 Views
Last Modified: 2010-08-05
Hi experts,

Hopefully this will be very simple.  

When I try to compile my Access code I get "user defined type not defined" referring to my line

Dim MAPIsession1 as MAPI.Session

Now, I have references to Outlook 10 Object library and CDO For Exchange 2000 Library.  In fact (thanks to RockiRoads for this utility) my full references are:

Ref Name      Broken        Full Path
CDO           False         C:\Program Files\Common Files\Microsoft Shared\CDO\CDOEX.DLL
DAO           False         C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll
Outlook       False         C:\PROGRA~1\MICROS~2\Office10\msoutl.olb
ADODB         False         C:\Program Files\Common Files\System\ADO\msado21.tlb
stdole        False         C:\WINDOWS\System32\stdole2.tlb
Access        False         C:\Program Files\Microsoft Office\Office10\msacc.olb
VBA           False         C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL

I'm using Outlook 2002 on XP.

Any ideas?

0
Comment
Question by:colinspurs
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
stevbe earned 125 total points
ID: 11793464
Use the Microsoft CDO 1.21 Library and not the CDO for Exchnage 2000 Library in your references.

Steve
0
 
LVL 3

Author Comment

by:colinspurs
ID: 11793915
Thanks Steve,

I don't see the CDO 1.21 Library in the references list - what's its name - will I have it or do I need to download it?

Colin.
0
 
LVL 39

Expert Comment

by:stevbe
ID: 11795013
The name (as it appears in the References dialog box) is Microsoft CDO 1.21 Library.
If you don't have it, I don't think it is a simple 1 file download because the library itself depends on other libraries (GAPI.dll?). You might be able to find definative information at slipstick.com

Steve
0
 
LVL 3

Author Comment

by:colinspurs
ID: 11797170
Thanks Steve - I actually got it from http://www.ssw.com.au/ssw/kb/KB.aspx?KBID=Q757100
but have bookmarked the slipstick site also.  
Cheers, Colin.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now