#1
|
|||
|
|||
Grouping records by supplier
Hi!
Is there a way to merge multiple fields from a database into the body of a letter in Word, grouped by the supplier and listing all supplier's items, like shown in the example belove? Supplier 1 Address 1 ..... some text here..... Item 1 is approved for use Item 2 is approved for use Item 3 is not approved for use . . . Item xx (all items of the supplier listed here) ....some text here.... The database consists of the following fields: Supplier name Supplier address Item name Approval Supplier Name Supplier Address Item Name Approval Supplier 1 Address 1 Item 1 approved for use Supplier 1 Address 1 Item 2 approved for use Supplier 1 Address 1 Item 3 not approved for use Supplier 2 Address 2 Item 1 approved for use Supplier 3 Address 3 Item 1 approved for use Supplier 3 Address 3 Item 2 not approved for use . . . . Supplier XX Address XX Item XX not approved for use |
#2
|
||||
|
||||
You can use Word's Catalogue/Directory Mailmerge facility (the terminology depends on the Word version) to generate such a document. 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. The field coding for this is complex. However, since the tutorial document includes working field codes for all of its examples, most of the hard work has already been done for you - you should be able to do little more than copy/paste the relevant field codes into your own mailmerge main document, substitute/insert your own field names and adjust the formatting to get the results you desire. 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 Another option would be to use a DATABASE field in a normal ‘letter’ mailmerge main ocument and a macro to drive the process. An example of this approach can be found at: http://answers.microsoft.com/en-us/o...1-1996c14dca5d 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 http://bit.ly/1hduSCB 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] |
#3
|
|||
|
|||
Thanks for a really comprehensive response.
|
Tags |
mail merge grouping |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Supplier Comparison Scorecard Questions | BusinessBuilder | Excel | 2 | 08-22-2015 09:17 AM |
Automatic supplier contact detection at Outlook and Lync | LordLA | Outlook | 0 | 07-30-2015 02:40 AM |
Inputting 339 supplier names into individual Word documents | Aron19 | Mail Merge | 3 | 04-29-2014 04:41 PM |
Pivot table grouping problem 2 tables need different grouping | differentdrummer | Excel | 3 | 12-10-2013 01:19 AM |
How to transpose the datas of part code and supplier into row and column | PRADEEPB270 | Excel | 3 | 10-26-2012 07:22 PM |