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

How Do I mail merge one instance of every person???

I would really appreciate some help to resolve this issue, as has got
me completely baffled.

I have an Access database containing approx 3000 students.
StudentTable contains all contact data. It is connected via a junction
table to
SubjectArea which contains details of which subject areas they have
expressed an interest in. This could be one or many subject areas.

I now want to be able to mail-merge all 3000 students a single page
letter, which at the bottom of each letter, shows a list of which
subject areas they have expressed an interest in, so that the relevant
course leaflets can be included in with the covering letter.

Currently when I try to mail-merge through Word, it producing a letter
for every instance of a student requesting a sbject area.

So for example, there are 6 letters being produced for Mr Smith because
he asked about 6 courses.
When in fact I want one letter for Mr Smith, showing the six courses he
has expressed and interest in at the bottom.

I there anyway to do this? Any pointers would be really helpful.
Thanks
Zack

Nov 30 '05 #1
4 1192
What you would want to do is put the subjects the student is interested
in into the same record as the student is in. For example, your
resulting table should look like this:

LName FName SubInterested1 SubInterested2 SubInterested3
------------------------------------------------------------------------------------------
Adon Bob Science Astronomy Math
Anton Harry Math Physics

You can do this either with queries or by creating a new table. Once
you have this format, your mail merge will show the student and the
subjects he is interested in on the same letter.

Nov 30 '05 #2
use fConcatChild from www.mvps.org The code essentially collapses the
child records (in your case Subject Areas the student is interested in.
then you'd base your e-mail on the query instead of a table. Just
include all the fields that you want for your mail merge. I'm not
entirely sure if it will work, but you could try specifying a CrLf as
your delimiter Chr(10) Chr(13) (I think).

See:
http://www.mvps.org/access/modules/mdl0004.htm

Either that, or you can use code from Access Developer's Handbook.
There's code in there for putting invoice data into a form in Word.

Dec 1 '05 #3
Yes, Chr(10) Chr(13) is a line break.

Dec 2 '05 #4
I think you can do what you want from WORD. If you insert a table containing
one row into your document and insert the relevant fields into that row, WORD
will open a new cell in the merged table for each separate item.

Hope this is helpful.
Mike

zack wrote:
I would really appreciate some help to resolve this issue, as has got
me completely baffled.

I have an Access database containing approx 3000 students.
StudentTable contains all contact data. It is connected via a junction
table to
SubjectArea which contains details of which subject areas they have
expressed an interest in. This could be one or many subject areas.

I now want to be able to mail-merge all 3000 students a single page
letter, which at the bottom of each letter, shows a list of which
subject areas they have expressed an interest in, so that the relevant
course leaflets can be included in with the covering letter.

Currently when I try to mail-merge through Word, it producing a letter
for every instance of a student requesting a sbject area.

So for example, there are 6 letters being produced for Mr Smith because
he asked about 6 courses.
When in fact I want one letter for Mr Smith, showing the six courses he
has expressed and interest in at the bottom.

I there anyway to do this? Any pointers would be really helpful.
Thanks
Zack


--
"We have met the enemy and he is us." -- Pogo Possum

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200512/1
Dec 2 '05 #5

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

Similar topics

8
by: Ishbel Kargar | last post by:
Since upgrading from old laptop (Windows 98) to new laptop (Windows XP), my mail-merge letters are doing strange things with date formats. For instance, my reminder letter for lapsed subs carries...
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...
9
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access...
0
by: Linda Cacina | last post by:
Hello all you fine folks, Here is some code I am using to merge data from a single record Access 2K3 table into a NEW word document based on a pre-defined Word merge template doc. All I want to...
15
by: sparks | last post by:
They are wanting to use word to print out some cards 4 to a page preformatted stuff from an access database. the problem with this is they don't want to do the same card twice. How can setup a...
5
by: Simon | last post by:
on my database i have a customers Table (tblCustomers) on the form of it (frmCustomers) i would like a button what will open up word and open up my comapny letter head template and then merger...
3
by: Richard Gilmore | last post by:
within my database I have a login form with a forgot password button when the button is clicked you are prompted to enter your email in frmforgotpassword this value is used for the parameters of...
1
by: Esther Lane | last post by:
Hello! First off, many many thanks to Albert who wrote the Mail Merge code for MS Access I am using. It has been working beautifully for a few years. However, my client just (without notice!)...
3
by: Silicor | last post by:
Access 2007 I have a data set that contains an (application, person, role). There is a one to many relationship to . My goal is to do an email merge into word. I'm fine if all the get...
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
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
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.