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

One Access DB is working with Outlook and one is not working with outlook 2013

Status
Not open for further replies.

puforee

Technical User
Oct 6, 2006
741
US
I have a DB that works to output stored files with MS Outlook. To make this work I had to add a Reference under VB Tools. "Microsoft Outlook 15.0 Object Library".

I then tried to do this again in another DB...same computer. I also added the same Reference in VB Tools. When I Debug the code I get this failure: "Compile error: User-defined type not defined" and the Debug tool highlights: "Dim appOutLook As Outlook.Application" as the failing code in my VB.

After attaching the "Microsoft Outlook 15.0 Object Library" Reference I saved and close the DB and then reopened it. The Reference was still there but I am still getting the same failure. This code is being run in a module. The Good data base has the code running after a click on a form button.

Where am I making my mistake please?

John
 
I found my problem and fixed it.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top