Solved

unable to recognise MAPI - missing reference?

Posted on 2004-08-13
4
584 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

726 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