Link to home
Start Free TrialLog in
Avatar of Colin Brazier
Colin BrazierFlag for United Kingdom of Great Britain and Northern Ireland

asked on

unable to recognise MAPI - missing reference?

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?

ASKER CERTIFIED SOLUTION
Avatar of stevbe
stevbe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Colin Brazier

ASKER

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.
Avatar of stevbe
stevbe

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
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.