Results 1 to 4 of 4
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    docmd.sendobject problems... oy

    So I am trying to send an email filled with alot of record based information.

    DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, r!email, , , stSubject, "Client Name: " & r!ClientNumber & " - " & r!ClientName & vbCr & "Project Type: " & r!ProjType & vbCr & "Date Completed: " & r!DateCompleted & vbCr & "Software Name: " & r!SoftwareName & vbCr & "Vendor Name: " & r!Vendorname & vbCr & vbCr & "URL Generated: " & r!URLCreated & vbCr & vbCr & "URL Creation Date: " & r!DateURLCreated




    the code seems to work, however it is opening the email and making the user press the send button before it will continue thru the code. I have tried tacking on a true or false to the end of the docmd.sendobject process but it is not automatically sending. Any ideas?

  2. #2
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    if the code would advance to the next line, I could do something cheezy like send keys... but it will not.

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Figured it out... im an idiot.

  4. #4
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    Microsoft has put security precautions in the automatic sending of emails so it always forces the user to press the Send menu choice.

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

Similar Threads

  1. VBA Send Email using DoCmd.SendObject
    By malamute20 in forum Programming
    Replies: 15
    Last Post: 10-05-2011, 12:44 PM
  2. Replies: 1
    Last Post: 11-17-2010, 11:24 AM
  3. DoCmd.SendObject Question
    By HunterEngineeringCoop in forum Programming
    Replies: 3
    Last Post: 10-04-2010, 01:42 PM
  4. Email sent via DoCmd.SendObject
    By silverback in forum Programming
    Replies: 0
    Last Post: 10-29-2009, 06:26 AM
  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