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

Forms & Subforms and email

I have a main form which contains one subforms. All of the data is from
the same record. The main form contains the personals details and the
subform contains their order details. I would like to use a button which
would send that records (main form and subform details) in an email using
SENDOBJECT. However the SendObject sends the complete Orders table as an
attachment.

How can I send the single record as email??

Regards

Liam Kitson
Nov 12 '05 #1
1 3139
You need to build a report that shows the main part, and the details part.

You can then convert whole complex mess to a word attachment (rtf).

Keep the format simple, and clean..as the rtf format export does NOT export
graphics and logos.

Then, in code you can lanuch the reprot to the ONE record you are viewing,
adn then launch the meail client.

strReport = "InvoiceEmail"

me.Refresh
DoCmd.OpenReport strReport, acViewPreview, , "id = " & mybookingid
Reports(strReport).Visible = False

strEmailName = Nz(Me.EmailName, "")
strBodyText = "Hello " & Nz(Me.FullName)
strSubject = "Invoice from Joe Tools Company"

DoCmd.SendObject acSendReport, strReport, _
acFormatRTF, strEmailName, , , strSubject, strBodyText, True
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
pl******************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Mudd | last post by:
I come from the Access environment where all the windows form handles were hidden so pardon my question. In Access I could make "continuous" subforms and there was a subform "container" object I...
25
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I...
1
by: Liam Kitson | last post by:
I have a main form which contains one subforms. All of the data is from the same record. The main form contains the personals details and the subform contains their order details. I would like to...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
4
by: Luisa Lopes | last post by:
Dear colleagues: I read somewhere that you could obtain the results of a query as a form. I have design a database for my books and waht I would like is to obtain the results of my queries...
8
by: Zlatko Matić | last post by:
Hello. How can I synchronize subforms content with current record in master form, if both form and subform are based on DAO code ? I assigned DAO recordset to forms by using QueryDef, on Load...
1
by: paquer | last post by:
I have forms that are used in the office as well as in the field. I want user's to be able to print out an exact copy of the form for "in the field" data entry. (Yes we are still stuck in the 90's....
1
by: Shaun | last post by:
Hi all I have converted an accress XP data file to access 2007. The problem I now have is I cant add any data to the subforms. I have enabled all the allow options but still no go! Please help...
0
by: BillE | last post by:
I'm wondering how others have addressed UI requirements for Access-style continuous forms and sub-forms in a windows forms application (besides third-party products). Thanks Bill
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.