Results 1 to 3 of 3
  1. #1
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150

    No longer able to connect to Outlook

    Hello all,



    I was wondering if anyone could help. I have the following code which for about 4 years has worked flawlessly to connect access to Outlook. The last couple of weeks it has been failing on the CreateObject line and I can't for the life of me work out why. Does anyone have any ideas? Has anything changed in Windows that could be affecting this? Are there any other ways I can connect to outlook?

    If you have any thoughts, I would appreciate your help. I have already tried a compact and repair of the database.

    Code:
    Dim oApp As Outlook.Application
    Set oApp = CreateObject("Outlook.Application")
    
    ' Rest of the code
    Thanks

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    No error message?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Is outlook open before you run it? Open it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Connect outlook to access
    By PENNAIAH in forum Access
    Replies: 2
    Last Post: 02-02-2017, 08:51 AM
  2. Replies: 1
    Last Post: 09-26-2016, 06:31 AM
  3. Replies: 11
    Last Post: 05-20-2014, 11:32 AM
  4. Assigning Outlook task from shared Outlook mailbox
    By Remster in forum Programming
    Replies: 2
    Last Post: 11-16-2011, 04:38 AM
  5. Replies: 5
    Last Post: 03-29-2009, 07:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums