Solved

MAPI question

Posted on 2000-03-07
5
230 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
[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
5 Comments
 
LVL 4

Expert Comment

by:wesleystewart
ID: 2592927
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
ID: 2592947
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
ID: 2592960
I think that you need reference MSMAPI object:



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

Author Comment

by:RoLaAus
ID: 2592985
thanks I did need to change the

Dim objSession As MAPI.whatever

to
Dim objSession As Object
0
 

Author Comment

by:RoLaAus
ID: 2593701
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

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