Solved

MAPI question

Posted on 2000-03-07
5
227 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 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

12 Experts available now in Live!

Get 1:1 Help Now