Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2014, 10:33 PM
JemmyRi JemmyRi is offline Combining two different records into one Windows 7 32bit Combining two different records into one Office 2007
Novice
Combining two different records into one
 
Join Date: Oct 2014
Posts: 1
JemmyRi is on a distinguished road
Default Combining two different records into one

Hi Everyone,



I'm a bit new to this mailmerge thing but I've spent half a day on it and just can't seem to get it to work. I've got some basic programming knowledge but mailmerge is just so different from everything that I'm used to.

Situation (sorry if I get any terminology wrong):
- I'm using mail merge line items in a table, and each line pulls out different components of a record.
- This gets fed into my accounting software which generates invoices (The software lets me upload docx files as invoice templates. These files use mailmerge code to fill in the details of each invoice).

Example mail merge code in the docx file


Example output on the invoice (recreated in Excel for simplicity)


Question
As shown in the picture above, how do I combine components of two different records into the same record? If someone could post some example code that would be great...

Thanks for your time, hope you can help

Last edited by JemmyRi; 10-16-2014 at 10:38 PM. Reason: Updated image links
Reply With Quote
  #2  
Old 10-17-2014, 05:29 AM
macropod's Avatar
macropod macropod is offline Combining two different records into one Windows 7 64bit Combining two different records into one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
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

There are two issues with your mailmerge:
1. Whatever the process is, it uses an addin that employs non-standard fields. The TableStart:LineItem and TableEnd:LineItem codes evidences that. Consequently, what you can do may be limited by what your software supports - unless, of course, you can access the database via a standard Word mailmerge.
2. Assuming you have the required flexibility, the next issue is: How would the mailmerge process identify which records to combine? Indeed, are they different records, or are they perhaps different fields from the same record?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining two different records into one Combining Records of two sheets with Loop till Unique ID abhilashv Mail Merge 1 01-22-2014 04:02 AM
Combining charts mlsds Excel 4 10-22-2012 07:35 AM
Combining two different records into one Combining documents of different formats Blaie Word 1 06-04-2011 06:35 PM
Combining two different records into one Combining Word Documents dms997 Word 5 02-26-2011 03:25 AM
Combining two different records into one Combining ppt presentations Pouye PowerPoint 1 06-29-2010 11:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:30 AM.


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