Dimitry,
I don't know if the message is spurious or not.
As it turned out, I was having a couple of other weird problems with MS
Access, so I ran a Detect and Repair on Microsoft Office and now they've all
gone away, and I'm in business again.
Thanks for your help.
"Dmitry Streblechenko" wrote:
I have never seen that error. Does it matter whether Access is running or
not when that code is executed?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Michael Ryle" wrote in message
...
Thanks, Dimitry. That got me a little further.
The code:
Dim appAccess As Access.Application
no longer produces a compile error.
However, when this code runs:
Set appAccess = CreateObject("Access.Application")
I get the error message:
"-1836580859 (92880005)
The program for the attachment may not have been installed properly or may
have been moved or deleted. Reinstall the program in which the attachment
was created."
I'm afraid this message makes no sense to me, particularly in its
reference
to an "attachment" (an Outlook email attachment?) Does it to you? Do you
know where I might be able look it up?
Thanks for your help.
"Dmitry Streblechenko" wrote:
Tools|References in the VBA editor.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Michael Ryle" wrote in message
...
No. How do you do that? Actually I copied this code from another
machine
where it works under the same release of Outlook and Access.
"Dmitry Streblechenko" wrote:
Did you add Access to your project refrences?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Michael Ryle" wrote in
message
news
I'm trying to access MS Acess from Outlook, both 2003.
When the following bit of code runs:
Dim appAccess As Access.Application
I get the message
Compile error: user-defined type not defined.
Anyone know what's going on? Thanks.