Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Send Email < Multi-Field Find | Import Excel >
Back to Send Email    Comments List
Upload Images   Link   Email  
Change PDF Name
Nils Markgraf 
      
3 years ago
Hi Richard,
I am still a newbie but with the help of your videos I managed to build my own business database, so thank you very much!!

I just implemented this Send Email button with automatically attaching the report as a PDF file, like you showed in the extended cut.

My question is: Could I make it so the pdf filename is the invoice number of the current client? Something like invoice_number.pdf

Otherwise all my invoices have the same name and I need to change them manually afterwards.

Thank you very much!
Kevin Robertson 
           
3 years ago
I would create a variable to store the path and filename of your invoices like this:

Dim Filename As String
Filename = CurrentProject.Path & "\" & InvoiceNumber & ".pdf"


Then use Filename in OutputTo and SendEmail. This way if you need to change it in the future you only need to change it in one place.
See these videos for extra help.

Variables
Concatenation
Nils Markgraf OP 
      
3 years ago
Wow thank you so much for this super fast reply!!
Gonna check it out and tell you then if I managed to get it work :D
Nils Markgraf OP 
      
3 years ago
Worked great! I love you guys, everything becomes so easy with your help! :D
Thanks alot!

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/23/2025 11:49:34 AM. PLT: 0s