Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2014, 11:49 PM
chelios chelios is offline Merge multiple row sql query result Windows 7 32bit Merge multiple row sql query result Office 2010 32bit
Novice
Merge multiple row sql query result
 
Join Date: May 2014
Posts: 1
chelios is on a distinguished road
Default Merge multiple row sql query result

Hello,



I don't know how but I need to merge multiple rows to one word document. This is the problem: I have like 4 or more row query result from sql view, data is always same only for fiew colums data changes per row something like

1 1 1 2 1 1 1
1 1 1 3 1 1 1
1 1 1 4 1 1 1

How can I merge every 1 result from this example and 2,3,4 like this?

Hope someone will understand what I need . I try to solve this on sql view level but everyone suggest it is much easier to solve this while merging.

Thanks.
Reply With Quote
  #2  
Old 05-23-2014, 03:10 AM
macropod's Avatar
macropod macropod is offline Merge multiple row sql query result Windows 7 32bit Merge multiple row sql query result Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial at:
http://windowssecrets.com/forums/sho...merge-Tutorial
or:
http://www.gmayor.com/Zips/Catalogue%20Mailmerge.zip
The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it.

For some worked examples, see the attachments to the posts at:
https://www.msofficeforums.com/mail-...html#post23345
https://www.msofficeforums.com/mail-...html#post30327
http://windowssecrets.com/forums/sho...l=1#post928391

Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from:
Graham Mayor at http://www.gmayor.com/ManyToOne.htm; or
Doug Robbins at https://skydrive.live.com/?cid=5aedc...615E886B%21566

In addition to a 'Many to One' merge, the latter handles:
• Merge with Charts
• Duplex Merge
• Merge with FormFields
• Merge with Attachments
• Merge to Individual Documents
• Merge, Print and Staple
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup multiple values and compare different scenarios to get a specific result mws Excel 5 05-24-2014 04:52 AM
Merge multiple row sql query result MS Access 2007 query to Merge KenshiroUK Mail Merge 1 02-11-2013 04:31 PM
Merge multiple row sql query result Mail Merge from Access Query to Word ChrisMan Mail Merge 2 12-10-2012 11:22 PM
Merge multiple row sql query result Simplified Mail Merge From a Query Evis Mail Merge 5 05-03-2011 05:07 AM
Mail Merge Query kangabanga Mail Merge 0 09-25-2008 04:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft