Link to home
Start Free TrialLog in
Avatar of Eileen Murphy
Eileen MurphyFlag for United States of America

asked on

Microsoft Access merge to Word - List sub records

Is there a way to merge a query to Word (with the parent record) and list sub records within the body of the letter? Example: Send a letter to an employee and display all their dependents in a list in the letter??
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or you can reverse the process and list all the (Parent/Child) data in Access and do a "Merge" letter from Access.

But. lets be clear, when you say "Send a letter", do you mean a "Mail" a standard Letter or "Send" an Email?
Avatar of Eileen Murphy

ASKER

Generate mail to send via post. This is an application that is distributed nationally and it currently uses bookmarks and tables generated by the application - but the process is convoluted and difficult for some users to understand. It works great with the exception of having to train users on how to create their own letters, etc.

Access reports would be great if the content was fixed.
<Access reports would be great if the content was fixed.>
Not sure what you mean by this...

Here is a sample that works just fine for me, the data is not "Fixed"...

Again, just presenting this as an option, ...for me, it is easier to manage "Related" data in Access.
My Access "Mail Merge Reports" are pretty basic.

Jeff

untitled.JPG
Database9.accdb
Ei0914,

<but the process is convoluted and difficult for some users to understand. It works great with the exception of having to train users on how to create their own letters, etc.

Access reports would be great if the content was fixed.>

OK,... I think I see what you mean...
1. The letter will be unique
2. User have trouble creating the letters.

Then, yes, you are correct, ... Access would not be a good alternative in this case.

;-)

Jeff

Each customer who purchases the application gets a folder of letter templates which they then customize for their use. It's just that it's difficult for them to understand the bookmarks -- mail merge is so much easier to use. It's too bad that Microsoft hasn't come up with a way to do this. I wonder -- would an embedded excel worksheet be the answer...? Hmmm
I would first investigate the link that GrahamSkan posted, as this is his specialty...
Another possibility would be to use the DConcat function described in my article https://www.experts-exchange.com/Microsoft/Development/MS_Access/A_2380-Domain-Aggregate-for-Concatenating-Values-by-Group-in-Microsoft-Access.html to create a concatenated field, using Chr(13) & Chr(10) as the delimiter.

Create a query in Access using that function, and then make the query the data source for your mailmerge.

Patrick
Thanks Patrick -- I'll pass that on.