Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2006

Tip: Looking for answers? Try searching our database.

Merge field link to database returns value w/255-character limit.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Austin - 07 Nov 2006 22:07 GMT
One specific merge field (of several distinctly-named fields) in a main Word
document is returning a 255-character-limited string of longer text from an
Excel file.  Other merge fields in the document are not behaving this way;
they are returning the full contents of their Excel cells, despite the
lengths of their text values being greater than this 255-character limit.

The same behavior occurs using this particular merge field in a
newly-created test document.  Is the field or its link properties corrupted
in some way?
Peter Jamieson - 08 Nov 2006 09:31 GMT
When Word 2002/2003 gets data from an Excel file, by default it uses the
OLEDB provider, which is "database-oriented" and wants to determine a
specific data type for each column in the worksheet. Excel can of course
have mixed data types in a single column.

So the OLEDB provider looks at the first 25 rows of each column and applies
various rules. Typically, in a "mixed" column, it will take the "majority"
data type. With some settings it will choose to use a "text" type. The
trouble is that as far as the user is concerned there is little obvious
difference between cells with text shorter than 255 characters and cells
with longer texts, but the OLEDB provider regards one as "text" and the
other as "memo". So if you have a column with mixed "text" and "memo" in the
first 25 rows, it is likely to be seen as "text" by the provider, and
truncated to 255 characters.

As far as I am aware there are no settings that will change this behaviour,
and the only way you are likely to see the full text is to revert to the DDE
connection method (check Word Tools|Options|General|"Confirm conversion at
open", go through the connection process again, and select DDE when offered.
The machine must have Excel installed for that to work.

Peter Jamieson
> One specific merge field (of several distinctly-named fields) in a main
> Word
[quoted text clipped - 8 lines]
> corrupted
> in some way?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.