Solved

How do you set up a query that is used for mail merging where there is a one to many table relationship and I want to show multiple dependents of each person?

Posted on 2011-02-23
2
315 Views
Last Modified: 2012-06-27
I have two tables that I want to use for a qeury to mail merge onto word documents.  There is the main employee table, and the dependents table.  I want to merge the employee information along with all the dependents each employee has.  How do I do that?
0
Comment
Question by:tlahpalli
2 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34961730
you create a query joining  the two table using a common field

select table1.* , table2.*
from table1
inner join table2
on table1.ID=table2.ID
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 34961957
I like to use doc properties for the data in the main table, and TypeText into a Word table for the "many" records.  This allows expansion for as many rows as are needed, for example an invoice with order details.  See my Access Archon #44  for a discussion of this method, and a sample database.  Here is a link for downloading it (note that the sample database is in Access 97 format, so you may have to upgrade it):
http://www.helenfeddema.com/Files/accarch44.zip

And here is screen shot of the Word document produced by it:
Northwind-Invoice.jpg
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now