Solved

Sendobject not available

Posted on 2013-11-22
3
249 Views
Last Modified: 2014-08-10
The following code worked great in a database created in access 2007. We now use office 365 and get an error message "sendobject not available" when trying to send an email from access. Any suggestions?


Private Sub Email_Report_Click()
On Error GoTo Err_Email_Report_Click

    Dim stDocName As String

    stDocName = "Application Verification Report"
    DoCmd.SendObject acSendReport, stDocName

Exit_Email_Report_Click:
    Exit Sub

Err_Email_Report_Click:
    MsgBox Err.Description
    Resume Exit_Email_Report_Click
   
End Sub
0
Comment
Question by:cskehan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21
ID: 39670447
You need to have an email client, like Outlook, installed and configured to send emails.

What email software  do you have installed?

If you do not have any email program installed and do not want to install one then you can't use SendObjects. You will need to use VBA code to send out through an SMTP server.

You may want to use this: http://www.chilkatsoft.com/
0
 

Author Comment

by:cskehan
ID: 39670480
Outlook is installed office 365 version.
0
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 500 total points
ID: 39670484
Is Outlook configured as the default email program and set up to send email?

If Outlook is already used to send emails then you mail need to run the Office Repair.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question