Solved

MAPI question

Posted on 2000-03-07
5
226 Views
Last Modified: 2012-05-04
I want to get a dialog box like the 'File open' for the 'address book' and this is the code that MSDN suggests - however, they do not get the fundamentals, but rather dive right into the code

my question is, what Object Reference do I need in order to get MAPI to work?


Dim objSession As MAPI.Session, obRecipColl As Recipients
Set objSession = CreateObject("MAPI.Session")
objSession.Logon
0
Comment
Question by:RoLaAus
5 Comments
 
LVL 4

Expert Comment

by:wesleystewart
Comment Utility
The OCX is MSMAPI32.OCX.  You might want to look at the following question in the Access topic:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=10306570

Hope this helps,

Wes
0
 
LVL 9

Expert Comment

by:Ruchi
Comment Utility
In order to get MAPI to work, you must have the Microsoft MAPI controls installed. There is MSMAPI32.OCX in the file.
0
 
LVL 3

Accepted Solution

by:
carruina earned 50 total points
Comment Utility
I think that you need reference MSMAPI object:



Dim objSession As Object
Set objSession = CreateObject("MSMAPI.MAPISession")
objSession.SignOn
0
 

Author Comment

by:RoLaAus
Comment Utility
thanks I did need to change the

Dim objSession As MAPI.whatever

to
Dim objSession As Object
0
 

Author Comment

by:RoLaAus
Comment Utility
okay bonus question - if you want I can post it as a new one (considering this one is closed), I figured I might get as quick a response if I had this one send out an e-maiil as opposed to just posting a new question and waiting for people to spot it

anyways, my question is still concerning the MAPI  -- I established a connection fine, and it causes the address book to pop-up, but I can't retrieve anything more than the display name -- I was hoping to find the place where I can get all the properties and procedures for MAPI

I think I had it pulled up once on my MSDN but I can't seem to find the right keyword search for it again
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

10 Experts available now in Live!

Get 1:1 Help Now