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
323 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

630 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