#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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] |
|
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 |
MS Access 2007 query to Merge | KenshiroUK | Mail Merge | 1 | 02-11-2013 04:31 PM |
Mail Merge from Access Query to Word | ChrisMan | Mail Merge | 2 | 12-10-2012 11:22 PM |
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 |