Mapi controls

M

Marco

Hello,

I have used two controls on a form: MapiSession and
MapiMessages to read the inbox of Outlook. On my computer
it works fine but when I installed the application on a
different machine the controls don't work anymore. It seems
like Access does not recoginizes the controls.
I am using this code:

With MAPISession
.DownLoadMail = False
.LogonUI = True
.SignOn
.NewSession = True
MAPIMessages.SessionID = .SessionID
SessionIdTxt = .SessionID
End With

Both controls originate from the
Mapi32.ocx. The machine on which the application
doesn't work has this ocx file. Is there something which
has to be configured on his machine ?

Regards,

Marco
 
M

marco

The strange thing is that reference window in Access on my
machine is empty. Normaly there should be a list of
controls. The application was build on another machine
which probably had this list of controls. Do you know how
this might have happened ?

Marco
 
A

Arvin Meyer

marco said:
The strange thing is that reference window in Access on my
machine is empty. Normaly there should be a list of
controls. The application was build on another machine
which probably had this list of controls. Do you know how
this might have happened ?

I've never heard of this before. I suggest you look at some other databases
to see if the same behavior exists. If it does, I'd suggest reinstalling
Office/Access (First uninstall and clean the registry).

If your's is the only database without a list of references, I'd suggest
creating a new one and importing all the objects.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top