Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2005, 03:22 PM
Authorized User
 
Join Date: Jan 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Attaching a report to an email

I have an access database which sends an email to a person in a recordset. But it all works, has the body and everything the only thing i want to add is an attachment. I can add a file but not sure how would i add a report from my database. Here is as far as i got:
OutlookMessage.Attachments.Add "C:\EmailSend.mdb", Reports!rTest, , "hi"

rTest is the name of my report.
Any help is great THanks a lot

 
Old February 8th, 2005, 12:24 PM
Authorized User
 
Join Date: Jan 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe there is a way to add the report to the body of the email. Anyone have any ideas?

 
Old February 8th, 2005, 09:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Havn't played with the code to do this, but you could look at saving the report as a Snapshot (.snp) and sending the snapshot file as an attachment.

Bob






Similar Threads
Thread Thread Starter Forum Replies Last Post
Email a report alokanat Crystal Reports 0 November 19th, 2007 04:48 PM
Send report by email rajanikrishna Classic ASP Basics 0 October 20th, 2006 01:25 AM
Email a report only if there are records to view JuliusMoreland Reporting Services 0 July 11th, 2006 04:51 PM
Embed report into email message. liliarum BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 8th, 2004 01:27 PM
How to Email a Crystal report from .NET Alok Gupta Crystal Reports 1 September 26th, 2003 02:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.