473,396 Members | 1,712 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.

Display one to many records in a mail merge

Hi,

I have a mailmerge setup from my database. The database records Police
Cases, the incidents that make up each case and the perpetrators
involved in each incident.

tblCase 1->M tblIncident 1->M tblPerpetrator

I have a Case form with a unique reference on it and a subform (made up
with page tabs) that enables users to enter multiple incidents for that
case (Incident Page 1, Incident Page 2 and Perpetrator).

On the Perpetrator form there is a button to create a first warning
letter to be sent to the perpetrator. I have the merge working whereby
It will create a seperate letter for each Incident but I have been
asked to change it so that it shows one letter showing all incidents,
for example;

Perp Name
Perp Address
Incident Date Incident Location Incident Description
10/8/05 Here Violent Behaviour
11/8/05 There Abusive Language
12/8/05 Somewhere Damage To Property

Can someone please point me in the right direction or is this not
possible.

Any help would be gratefully appreciated.

Cheers.

Carl.

Nov 13 '05 #1
1 1963
You could either use this:
http://www.mvps.org/access/modules/mdl0004.htm

or better, there's code in Access Developer's Handbook Volume I that
does just this. The example in the book is an invoice, but the idea is
exactly the same. IIRC, they use automation, not a mailmerge. They
send the incident info as an ADO recordset and convert it to a
delimited text block and then convert that to a table.

the book may cost you $60, but if you're doing serious development,
it'll pay for itself very quickly.

Nov 13 '05 #2

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

Similar topics

2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
1
by: Lisa | last post by:
I have a query named QryDept where one of the fields is DeptID. The query is used for the data source of a mail merge letter. I would like to control which department is to get the mail merge...
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
6
by: Sven Pran | last post by:
Probably the answer is there just in front of me only awaiting me to discover it, but: 1: I want to build a query that returns all records in one table for which there is no successful "join"...
0
by: DS | last post by:
Hi Guys (and ladies): I have a parameter query in A2K that asks for records based on certain criteria. It returns the name and address fields of each record. I usually get about 5 to 10 records...
3
by: Stewart | last post by:
Hi there. I am attempting to create a Word mail merge from which I want to list several items for one particular category, i.e. a 1-to-Many relationship where a Service is the one, and Agencies is...
1
by: aeh | last post by:
I want to do a Word mail merge with several detail records for each address, example: orders in the last month for each customer. Thanks
1
by: kirkus84 | last post by:
I am currently trying to do a multiple record mail merge through a query via a command button on a form. The query basically displays customers who have said yes to privacy. The user inputs a date...
0
by: =?Utf-8?B?Sm9keQ==?= | last post by:
Does anyone know how to explain to the user what the comparison options in filter records in mail merge mean? For example, "Equal to".
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
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:
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
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.