Results 1 to 6 of 6
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    SendObject acSendReport goes nowhere

    Not sure why this isn't working, but when I email a report directly from my form it gets stuck in the Outbox of Outlook.

    Code:
    DoCmd.SendObject acSendReport, "rpt_Letters", acFormatPDF, , , , "rpt_Letters" & _
                                                "_" & Me.txtOrganizationName & "_" & Format(Date, "yyyymmdd") & ".pdf"
    You can go to Outlook open the email and click Send, but it still won't go. Clicking Send/Receive doesn't work either, but when I add an email address (mine) and set Edit Message to False, e.g.
    Code:
                                DoCmd.SendObject acSendReport, strReportName, acFormatPDF, "myEmail@myCompany.com", , , "rpt_Letters" & _
                                                "_" & Me.txtOrganizationName & "_" & Format(Date, "yyyymmdd") & ".pdf", , False
    the email goes on its merry way. In all cases Outlook is already running. This has happened to others users on different computers.

    Any suggestions?

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    when you invoke this command is there a popup that says something about access trying to send an email on your behalf and are you ok? Think it says "Allow/Deny/Cancel"

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    The pop-up only appears when I set Edit Message to False, otherwise the email opens with the attached report waiting to be finished and sent.

  4. #4
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Turns out this is part of a bigger issue. Our version of Outlook is configured not to allow this. I've tried using the "Send" feature on Adobe Reader, Word, Excel and Windows Explorer and all the emails get stuck in the Outbox. Odd how I could sneak one past the sentry with a preloaded Email address and the right switch. I'm not quite sure why "they", the mega corporation that provides our IT services to our IT department, would block this feature, but that's who it's getting pinned on. My next step is to raise the issue with "them" and see if they'll do anything about it. Prospects aren't good, but it's worth a shot.

    I'll provide an update when I have one.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    What is it that Outlook provides that you cannot provide via a form in Access? I say provide whatever features the Users want within a form in Access and then send the thing off on their behalf.

  6. #6
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    All my programming is done in my Access form. Outlook is the email client I have to use and it is not allowing the emails to be sent.

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

Similar Threads

  1. Replies: 15
    Last Post: 06-29-2015, 11:12 AM
  2. Quick Q about SendObject
    By Hello World in forum Forms
    Replies: 1
    Last Post: 10-03-2011, 10:01 AM
  3. sendobject acsendreport
    By mikeb in forum Programming
    Replies: 2
    Last Post: 09-17-2011, 03:02 AM
  4. SendObject
    By weshader in forum Access
    Replies: 1
    Last Post: 11-09-2009, 04:19 PM
  5. DoCmd.SendObject Help
    By bgreer5050 in forum Programming
    Replies: 0
    Last Post: 01-12-2007, 06:27 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