Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.SendObject

Status
Not open for further replies.

RangerFan

MIS
May 4, 2000
61
US
I am attempting to send myself an email with an attached Access report.

I am using the folowing code:

DoCmd.SendObject acSendReport, "ReportName", "SnapshotFormat(*.snp)", _
"emailaddress.com", , , _
"Test Report", , False

The code seems to work OK, but I receive no email. I am using AOL, and have AOL active when I execute the code. I may be missing something here. Any help would be appreciated.
 
When I use Outlook I am Creating an Object:

Set olookApp = CreateObject("Outlook.Application")
Set olookMsg = olookApp.CreateItem(olMailItem) ' create the message.

I am sure in your case you should be creating object first

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top