Solved

unable to recognise MAPI - missing reference?

Posted on 2004-08-13
4
576 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

757 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

17 Experts available now in Live!

Get 1:1 Help Now