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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch errormmessage, when sending an email

Status
Not open for further replies.

jsnunez

MIS
Feb 4, 2004
72
0
0
US
Hi all

I wrote a small form to send emails in Access 2000, that calls Outlook. And in some workstations when the user clicks on send email button, it crashes with the following error message "Type Misnatch".

In debug mode it points to the line:


set myOutlook = CreateObject"Outlook.application")

what could cause this error message in only some computers?

Thanks
jsn
 
Set reference to OutLook xx library

VBE > Tools > Reference > ....

________________________________________________________
Zameer Abdulla
Help to find Missing people
Even a thief takes ten years to learn his trade.
 
Found it!!!

For a reason that I do not know the Microsoft Outlook library was not pointing to the file

C:\Program Files\Microsoft Office\Office11\msoutl.olb

I had to brwopse to the library manually and it worked.

thanks
jsn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top