Results 1 to 6 of 6

Thread: Problem in accessing Outlook

  1. #1
    Join Date
    Nov 2009
    Posts
    359

    Problem in accessing Outlook

    Hello
    To integrate contacts from Outlook into a comic Access 2003 a followed a guide from a site. I created a textbox and "click on" then I executed the procedure to retrieve contacts from Outlook. The Problem is: on each click the same message is appeared.
    Error 'execution' -2147023170 (800706be)'
    Standard Automation
    Failure of remote procedure call.
    The debugger highlights this following line
    For ctrlists = 1 To mapi.AddressLists.Count
    I tried to restart the PC but the problem was still the same. Do you have any solutions for this? Thanks in advance.
    Last edited by NetworkeR; 24-12-2009 at 11:59 AM.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Problem in accessing Outlook

    Hello,
    I am surprised that you can run this code without warning . Outlook prevents the execution of such code to prevent a malicious code that can access your mail client. Otherwise, declare your variables As Object and replaces the instantiation via the keyword New a "CreateObject". Try the following and if you have any problem then do post back.

  3. #3
    Join Date
    Nov 2009
    Posts
    359

    Re: Problem in accessing Outlook

    Hello
    I have a runtime error with Outlook running but I've never had this type of window for authorization to access Outlook. Regarding the execution of this code, the startup of the DB, Access asks me whether or not authorize the execution of code contained therein. Any idea about this or suggestion why the authorization windows is going on the startup?

  4. #4
    Join Date
    Nov 2009
    Posts
    359

    Re: Problem in accessing Outlook

    Hey
    Sorry, but there's more, I change the error message and it reassures me.
    With this code:
    Code:
    Sub listemail()
        Sun X As Long, I As Long
        Sun out As Object
        Sun has As Object, Mapi As Object
        Sun ctrlists As Integer
        Sun Info As MapiRecip
       
        Set out = CreateObject("Outlook.Application")
        Set mapi = out.GetNameSpace("MAPI")
    Code:
    Error denforcement '424 ':
    Object required
    Any guidance on this?

  5. #5
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Problem in accessing Outlook

    Hi
    If you remove the reference, as I have suggested, then I think this statement is misunderstood:
    Code:
    Sun Info As MapiRecip
    See if you agree to it or you have some different ideas in you mind.

  6. #6
    Join Date
    Nov 2009
    Posts
    359

    Re: Problem in accessing Outlook

    Hi
    Thank you for your help. I have removed the reference and commented out the line that you have specified. And now it's info that is the problem:
    Code:
     I = MAPIResolveName(0, 0, A.AddressEntries(X), 0, 0, Info)
    Is that I have to use another way to retrieve contacts to transfer access to outlook successfully.

Similar Threads

  1. accessing ms outlook calendar on a blackberry curve
    By Bobthebuilder in forum Portable Devices
    Replies: 1
    Last Post: 09-02-2012, 11:41 PM
  2. Accessing Outlook inbox repair tool
    By Chuck in forum Vista Help
    Replies: 4
    Last Post: 23-08-2010, 01:10 PM
  3. Problem with Outlook 2007 SP2 accessing Exchange 2003
    By Ascetica in forum Office Update Service
    Replies: 4
    Last Post: 23-02-2010, 08:08 PM
  4. Outlook freezes while accessing global Contacts
    By CrazeD in forum Windows Software
    Replies: 3
    Last Post: 01-10-2009, 09:28 AM
  5. Outlook 2003 Disconnected when accessing over VPN
    By Rising in forum Small Business Server
    Replies: 1
    Last Post: 28-02-2008, 10:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,531,838.65062 seconds with 17 queries