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 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