Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference to Outlook in ACCESS2007 ??

Status
Not open for further replies.

Jonath

Technical User
Jul 13, 2007
27
FR
Hi,

I'm working with ACCESS2007 on Windows XP and made a form to let the user send an email via OUTLOOK, thanks to FAQ702-2921.

However, I can't find the reference specified in the Emailing posts, which is a reference to Microsoft Outlook.

I tried with references to Microsoft Office, some ActiveX data objects (lots of them...), but it does not work, I still have the error on line:
Code:
dim objoutlook as outlook.application

So I guess it's due to the new version of Access?
Does anyone know what the reference to Outlook is?

Thanks in advance,

Jonath
 
Did you look at the references list under Tools in the code Window? You should see something like Microsoft Outlook 11.0 Object Library. You need to tick it.
 
Hi Remou,

yes I DID look for that reference!! It's not there :-/

Starting with "Microsoft O..." I only have:

Microsoft Office ...
Microsoft OLAP
Microsoft OLE


Starting with "O..", I only have:
OLE DB Errors
OLEPRN
optshold
...

 
It seems as if you may need to re-install Outlook. Have you tried late binding? That is:

[tt]Dim ol As Object

Set ol=CreateObject("Outlook.Application")[/tt]



 
Additional info:

There is no MSOUTL.OLB file in c:\program files\microsoft office\office12 ..

(I have MSWORD.OLB, MSPPT.OLB, and XL5FR.OLB though...)
 
Yes, I tried that code, and got an error too.

I am not very interested in re-installin Outlook, do you think it would work if I just copy MSOUTL.OLB on my C: ?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top