Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Emailing A Report For A Specific Record
Colin M 

11 years ago
Hi:

I inserted this code into a new button. When I clicked on the button It asked me to save the report record as a PDF and then it closed.  That's all.

It did save the correct record, however, I need the button to attach the PDF to an email which pulls the customer's email address from the query, assign a SUBJECT LINE message for the email, a cc: email address and then some text for the main message window, which needs to be editable from Outlook.

The macro that I had created did all of this, however, it sent all of the records as part of the PDF.  Isn't there a way to edit my macro to select just the one record for the PDF?


Reply from Alex Hedley:

I hardly ever use Macros I'm afraid so don't know off hand.
You could try your idea of a separate Query that will then show just the single record.

Yeah, sorry that's not the full code for attaching it to the email as well.
That just gets it as a single record and saved ready for you to use in your email code.
You'd need to adjust the [OutputFile] parameter to be a file path and name that you want to attach.
As you have set it there you would know it to use as the attachment value later.

Have you seen the Email Seminar? That's goes into this in much more detail.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 8:19:43 PM. PLT: 1s