Results 1 to 4 of 4
  1. #1
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58

    Outlook Automation Hanging On Address Book

    My environment is:
    - Access 2007
    - .accdb file
    - Button code in standard module (for debugging; will move to form class mod. when works)
    - Am in datasheet view when compiling/stepping through/running
    - Early binding w/Intellisense
    - Libraries (in this order):
    VB for Apps
    MS Access 12.0 Obj. Lib.
    MS Outlook 12.0 Obj. Lib.


    MS OFC 12.0 Access db engine Obj. Lib.
    MS VB for Apps Extensibility 5.3
    MS VBScript Regular Expressions 5.5
    MS ActiveX Data Objects 2.8 Lib.
    OLE Automation
    - No compile or run-time errors

    Hi, Everyone,

    I'm trying to send an automated e-mail from Access through Outlook with a form button click. (My code runs whether my instance of Outlook is visible or not.)

    When stepping through my code's "send" statement fires, the Microsoft Office Outlook security warning fires ("A program is trying to send an e-mail message on your behalf...etc..), which is fine. I don't mind my users having to click that. When I click the "Allow" button to continue, Outlook's "Check Names" dialogue box comes up. I then click "Show More Names" which brings up the company's global address list. I find my name, select it, click "OK". My code drops down to my error handling line.

    Has anyone had this or a similar problem with addressess using Outlook automation?

    Is it a problem with permissions at IT level? A certificate, perhaps?

    Any ideas will help. Thanks for reading this!

    Frank

    This post is also here: http://www.utteraccess.com/forum/Out...l#entry2213861 and http://www.access-programmers.co.uk/...12#post1135612 and http://bytes.com/topic/visual-basic/...ok#post3705302

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    Post your code for analysis.

    So far, this is the only thing I have found http://www.pcreview.co.uk/forums/usi...-t3625055.html

    The code will open the addressbook search dialog but as the thread states, must click Outlook to bring it forward. Then it does return addressee to the procedure. I incorporated this into my send procedure and it worked. Haven't figured out the Win API calls to get the dialog forward.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58
    Hi, again, June!

    Thank you for taking the time to consider this problem.

    After I click "Allow" on the Outlook security dialog that pops up after my send statement runs, the company's global address book pops up fine in the form of the "Check Names" dialog box. My problem is that it is not recognizing names that are in it. Because the Outlook security dialog box was activated, I think it might be a problem that can only be solved with a permission change through my IT. I'm checking it out and will let you guys know what the solution was in another reply. Thanks for caring!

    Frank

  4. #4
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58
    Hi, June,

    This problem just magically fixed itself. All of a sudden my server requests were going through. I don't know what happened, but I hope it doesn't stop. Ha ha!

    Thanks.

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

Similar Threads

  1. Custom Fields from OUtlook Address book
    By Mikeydee135 in forum Import/Export Data
    Replies: 0
    Last Post: 03-22-2011, 07:46 AM
  2. Replies: 0
    Last Post: 02-23-2011, 10:32 PM
  3. Outlook Object Model question - automation
    By yeah in forum Programming
    Replies: 1
    Last Post: 11-23-2010, 02:05 PM
  4. Passing Email Address Into Outlook
    By cg1465 in forum Access
    Replies: 1
    Last Post: 10-01-2010, 07:59 AM
  5. Import Lotus Notes address book into a MS Access table.
    By acheo in forum Import/Export Data
    Replies: 0
    Last Post: 02-19-2007, 02:43 PM

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