×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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

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

(OP)
I found my problem and fixed it.

John

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

John,
You owe us an explanation winky smile

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close