Results 1 to 9 of 9
  1. #1
    nashr1928 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    146

    Sending email

    I have recently discovered that this function has stopped working and cant see why. I inserted a control button on a form to send a report to an email recipient. I now just get access error with no number just a message that states cant send this email message.

    Private Sub Command149_Click()
    On Error GoTo Err_Command149_Click
    Dim stDocName As String
    stDocName = "Service Report"
    DoCmd.SendObject acReport, stDocName


    Exit_Command149_Click:
    Exit Sub
    Err_Command149_Click:
    MsgBox Err.Description
    Resume Exit_Command149_Click

    End Sub

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    does the report exist?

    do you have an email client on your machine?

    does the report take a parameter?


    what happened when it was working? what did you see? nothing?

  3. #3
    nashr1928 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    146

    sending reports to email recipient

    I have had this report for a while now and its worked fine about a month ago. The attachment show in sucession what happens.
    1. send to email recipient
    2. Select snapshot
    3. select ok

    Then I get the error message and you can see in the print screen images i have attached.

  4. #4
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    nashr1928,
    This part of your code works fine,
    Code:
    Dim stDocName As String
        stDocName = "Service Report"
        DoCmd.SendObject acReport, stDocName
    Do you have your computer setup to send and receive email?

    Read the error message you posted.

  5. #5
    nashr1928 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    146

    sending email cont

    Well a month ago this all worked fine and this function just stopped working. Im not sure what to check. I did find some googled info that said this may be due to a windows security update that see's the email from access as a threat. I dont know how to check that either.

  6. #6
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    Do you have your computer setup to send and receive email?

    Read the error message you posted.
    You did not answer this question.

  7. #7
    nashr1928 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    146

    sending email cont

    Yes its set up with outlook from office suites 2007

  8. #8
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    I don't have office 2007 so I can't be of any further help.

  9. #9
    nashr1928 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    146

    sending email again

    Well thing is that all was working perfect a month ago and then just stopped functioning. I just love mcrosoft. Any I will try a computer forum. Thanks for your help.

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

Similar Threads

  1. Sending reports
    By nashr1928 in forum Forms
    Replies: 3
    Last Post: 04-28-2010, 07:31 AM
  2. VB code for sending email through Option Group?
    By getdpt in forum Programming
    Replies: 0
    Last Post: 08-23-2009, 03:59 PM
  3. SENDING EMAIL MESSAGES DIRECTLY FROM ACCESS
    By Frenchos in forum Access
    Replies: 0
    Last Post: 07-20-2007, 12:51 AM
  4. Replies: 1
    Last Post: 03-09-2006, 01:50 PM
  5. Sending email via Outlook (and Exchange2003) from Access2003
    By Larry Elfenbein in forum Programming
    Replies: 0
    Last Post: 11-15-2005, 09:03 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