473,396 Members | 1,933 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,396 software developers and data experts.

Can I insert data from a query or report directly into the body of an email

I generate a number of reports and queries from my Access 2007 database, which I need to email to customers. At the moment I can only send these as attachments. Is it possible to add the data in a format that will allow it to be included in the body of the email instead?
Regards
Nick Cooper
May 16 '11 #1
3 7209
jimatqsi
1,271 Expert 1GB
The quick answer is yes, no problem. But if you are already able to prepare an email and make an attachment, it should be obvious to you that you could dynamically add data to the body of the email.

Oh, but maybe you are preparing your email manually. Is that the case, or are you using VBA to do the emailing? If not, try looking at these threads ...

http://bytes.com/topic/access/insigh...ion-automation

http://bytes.com/topic/access/answer...send-email-vba

This one does not require an outside mail application like Outlook to do the sending
http://bytes.com/topic/access/answer...-using-cdo-vba

You might also need to research automatic creation of pdfs without user input. I use the code found here
http://www.lebans.com/reporttopdf.htm

Jim
May 21 '11 #2
I create the email and attachment, either by creating a report then right-clicking on it and chosing 'send to email recipient', or (more usually) using the SendObject action in a macro. This offers a 'Message Text' facility into which I would like to place the report, but I don't seem to be able to.
Nick
May 24 '11 #3
jimatqsi
1,271 Expert 1GB
Nick, I don't believe that is going to be possible. You have no access to the text of the report to copy and paste.
May 24 '11 #4

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

Similar topics

15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
2
by: jpodesta | last post by:
I am working on a trade processing project for my company. I would like to export a report directly to .csv format. I have looked all over in the groups for a way to do this. Appearently something...
6
by: VitaminB | last post by:
Hi Guys, I try to insert data from a form into a mysql database, but it did not work... There is no error, but the data did not pass thru the table. This is the short script:
1
by: reagen | last post by:
dear all, please help me that my script cannot insert data to ms acces. <%@ Page Language="vb" ContentType="text/html"%> <%@ Import NameSpace = "System.Data" %> <%@ Import NameSpace =...
0
by: danishce | last post by:
Hello, I want to insert data directly into my windows form data grid and load a combobox(userid) in the 1st column of data grid,a textbox(password) in 2nd column of datagrid. The code for insert...
8
by: SaltyBoat | last post by:
Needing to import and parse data from a large PDF file into an Access 2002 table: I start by converted the PDF file to a html file. Then I read this html text file, line by line, into a table...
6
by: SeeMe | last post by:
i want to ask, is it my coding got problem? Because when i run my program that can't be insert in mysql. cn some body let me noe my mistake? thanks include("php_library/connect.php"); $tablename =...
4
by: rednarjess | last post by:
Dear all; I write a HTML form that ask user to post an announcement, the subject and body must be inserted into DB. But the problem that I face is the data is not inserted. Any body can help me...
8
by: Betikci Boris | last post by:
Can not insert data into SQLite3 database through browser however i can easily insert data into my db from konsole, in both attmpts i used php 5.2.6 on 2.6.25.* linux kernel i think there is a...
1
by: Saberthedream | last post by:
Hello, I am creating a crystal report in .net and i need to print the crystal report directly without showing it to user . for this i am writing code Report.PrintToPrinter(1, true, 0, 0); but...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.