Results 1 to 4 of 4
  1. #1
    dccjr3927 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    130

    Sending Email from Access using Outlook

    I have an automated email for an inventory report.

    Code:
    DoCmd.SendObject acSendReport, "Specific Company Inventory", acFormatPDF, _
                 "email address", , , "Inventory Report", "Attached is a current inventory report.", False
    This is in the front end installed on multiple computers. If I am logged into my Outlook account it works fine. However, the user has their Outlook account open, it throws an Invalid Password error. I have made sure that the default program for email is set to Outlook on the offending computers.

    Anyone have any ideas.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Not the error I would expect. You can test to see if True for the Edit argument avoids it, but you may want the emails going out without user interaction. There was an Outlook security update that affected this type of thing. I think I had success making sure (on the user's computer) in Outlook File/Options/Trust Center/Trust Center Settings/Programmatic Access that the antivirus status was Valid. If it isn't, Outlook will throw this type of error.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dccjr3927 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    130
    Thanks. I will check into these.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    No problem, post back if you're still stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Sending a value from Access to Outlook email
    By George in forum Import/Export Data
    Replies: 8
    Last Post: 09-03-2018, 02:53 AM
  2. Replies: 1
    Last Post: 06-19-2018, 10:38 AM
  3. Replies: 6
    Last Post: 07-28-2017, 09:07 AM
  4. sending email from outlook
    By darwish in forum Programming
    Replies: 1
    Last Post: 04-16-2014, 07:49 AM
  5. Replies: 3
    Last Post: 09-01-2010, 08:43 PM

Tags for this Thread

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