![]() |
|
#1
|
||||
|
||||
![]() Quote:
When Word establishes the OLE DB connection, it tests the first ~8 records in each field to determine the data type. If those records contain text but none is more than 255 characters, Word treats it as a text field; if any of the records contains more than 255 characters, Word treats it as a memo field. Accordingly, all you need do in this case is ensure the first record, for example, contains more than 255 characters. You don't need to revert to the ancient DDE connection method. This is all documented in the Mailmerge Tips & Tricks 'sticky' thread (https://www.msofficeforums.com/mail-...ps-tricks.html) at the top of this forum, under the heading Mailmerge Data Format Problems.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Thanks, Macropod, for the clarification.
I did a test of your suggestion and found that it worked well. The merge output contained all the text and none of the records in the groups were truncated. A couple of notes, 1. How to create a record that contains more than 255 characters? I used Word to create placeholder text (=Rand(1,4)) that ensured I would have sufficient text for the dummy record. See attached. 2. At first, I entered the dummy data in the first cell of the first column (Section) in the Excel sheet. That placement did not result in the proper output. I still had truncated cells in the output tables. I am guessing that is because my merge code uses Key 1 (Mergefield Section) to group the records. Because my merge code uses Col A header as my Key 1 (Section), the placeholder text was appearing in the Key 1 mergefield and Key 2 mergefield (Question). See thread above for the merge code that I used. 3. When I put the placeholder text in the Key 2 (Question) field, the merge output was correct. See attached. Inserting a dummy record in the first row of the Excel sheet is certainly easier than connecting to DDE files. Cheers, |
#3
|
||||
|
||||
![]()
Or, if it suits your situation, you might just re-organise your data so that a record with more than 255 characters occurs first.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
incomplete data, mailmerge, tables |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Gwinnett | Mail Merge | 3 | 03-01-2017 09:25 AM |
![]() |
htsu | Mail Merge | 2 | 03-07-2016 03:10 PM |
Directory MailMerge with Category Grouped Lists on Labels | screech | Mail Merge | 3 | 06-18-2014 11:41 PM |
![]() |
JohnFinNC | Mail Merge | 6 | 10-04-2012 06:36 PM |
![]() |
rohitjain80 | Mail Merge | 1 | 02-12-2012 03:42 AM |