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
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

710 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