473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

VBA code to EmailDatabaseObject with Filename and subject specified by report field

Hello,

I have a database I'm trying to enhance with user friendly buttons. I have a report (DWRReport) that runs from querry (DWR Querry) based on table (DWR:Table). Additionally I use form (DWR Entry). The report DWRReport currently has Parameters for field "Dyna Drill WO". I'd like to create a button on the form DWR Entry that will run a macro pulling up the report, attaching the PDF of the report to an email, and renaming the filename of that PDF to the field "Dyna Drill WO". Also, I'd like to make the subject of the email being sent the field "Dyna Drill WO".

Sending an email "DWR Report" for EVERY DWR sent is going to create a problem for the people trying to search for them.

Forgive me, this is my first post so I'm not sure what other information is needed to assist me. I don't have any code currently. Though I have figured out how to email the report through the macro builder, there doesn't seem to be a way to specify any information like I'm needing. This leads me to believe that I need VBA code. As I'm new to access, understanding how to write the proper syntax to get the desired result is proving more than I can handle :)

Thank you for your help!
Danielle
Apr 9 '14 #1
1 2514
Seth Schrock
2,965 Expert 2GB
The basic steps you are going to need to take are to generate the PDF of the report and save it to a specified location and then create the email with the attachment.

First off, you can either prompt the user where they want to save the PDF or you can just have that hardcoded into the code. Then on the email, are you using MS Outlook or some other email system?
Apr 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: CSDunn | last post by:
Hello, I have a format issue on an Access 2000 ADP report that I am going to attempt to explain from a 'ten thousand foot view' : I have an Access 2000 ADP report that has a SQL Server 2000...
4
by: Zenon | last post by:
I am attempting to append a string prefix to a report field which is based on a query result. I want the user to be able click a checkbox on the form which opens the report to determine whether...
3
by: timcos | last post by:
OK...I am creatiung a report...much like a letter. I have a text box. It is supposed to hold the LLC Name' The database is "Client Info List" The field is called "LLC NAME" The text box...
2
by: JC | last post by:
I am trying to conditionally print a field on a report based on the value of another field in the query that the report is based on. In the Control Source for SerialB I have typed: = IIF(nz(QtyB)...
1
by: lwibisana | last post by:
Is there anyway to create a report, that have field could added to the report by itself? I have data Jan,Feb,Mar,Apr. The report is: Jan Feb Mar Apr May Jun ........ Dec A ...
2
by: blackduck603 | last post by:
Hi, I am fairly new to Access programming and Reports. I have inherited a project and am trying to understand some of the inner workings. There is a field named Overall in the Detail section of my...
4
by: andyoye | last post by:
Below code extracts the attachment and store it a share with actual attachment name. How can I set filename to a text field's value in my infopath form? So if attached file name is FileA.txt but...
3
by: jfeeley | last post by:
I have 16 checkboxes with captions of 1,2,3,...16. Is there a way in one report field to write the caption of each checkbox that is a -1? There are 16 possible incident types, and each incident can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.