A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

More Mail Merge truncating



 
 
Thread Tools Display Modes
  #1  
Old August 22nd, 2006, 08:14 PM posted to microsoft.public.word.mailmerge.fields
cheshirecat
external usenet poster
 
Posts: 4
Default More Mail Merge truncating

I've been reading the threads and trying the advice to no avail. When I merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the connection
method. Any ideas?

thanks,
Linda
  #2  
Old August 22nd, 2006, 08:51 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default More Mail Merge truncating

Have you confirmed that the data is complete in the Excel spreadsheet?
Maybe the truncation is between the SQL Server and Excel.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
news
I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda



  #3  
Old August 22nd, 2006, 08:57 PM posted to microsoft.public.word.mailmerge.fields
cheshirecat
external usenet poster
 
Posts: 4
Default More Mail Merge truncating

Yes, I have. The data is complete in Excel.

"Doug Robbins - Word MVP" wrote:

Have you confirmed that the data is complete in the Excel spreadsheet?
Maybe the truncation is between the SQL Server and Excel.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
news
I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda




  #4  
Old August 22nd, 2006, 09:00 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default More Mail Merge truncating

Then you need to look at the difference between the data for the one field
that merges correctly and those that don't.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
...
Yes, I have. The data is complete in Excel.

"Doug Robbins - Word MVP" wrote:

Have you confirmed that the data is complete in the Excel spreadsheet?
Maybe the truncation is between the SQL Server and Excel.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
news
I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda






  #5  
Old August 22nd, 2006, 09:51 PM posted to microsoft.public.word.mailmerge.fields
cheshirecat
external usenet poster
 
Posts: 4
Default More Mail Merge truncating

where would I look? in Excel? In Word? In SQL? Does it matter how the field
types are defined in SQL? I've copied data from the incorrectly merging
fields into Word and Notepad to compare them against what's working and the
only noticible difference in the non-truncating fields is that they start and
end with angle brackets (because it's XML strings).

"Doug Robbins - Word MVP" wrote:

Then you need to look at the difference between the data for the one field
that merges correctly and those that don't.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
...
Yes, I have. The data is complete in Excel.

"Doug Robbins - Word MVP" wrote:

Have you confirmed that the data is complete in the Excel spreadsheet?
Maybe the truncation is between the SQL Server and Excel.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"cheshirecat" wrote in message
news I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda






  #6  
Old August 22nd, 2006, 09:57 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default More Mail Merge truncating

The trouble with "the advice" is that none of the methods of connecting to
Excel data (or any other kind of data) can be guaranteed to do what you
need: each has its own limitations, and there are quite a few.

In this case, are you in a position to connect directly to the SQL Server?
If so, that still may not solve the problem, but it may well cut out the
"middle man".

Peter Jamieson
"cheshirecat" wrote in message
news
I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda



  #7  
Old August 24th, 2006, 08:59 PM posted to microsoft.public.word.mailmerge.fields
cheshirecat
external usenet poster
 
Posts: 4
Default More Mail Merge truncating

I didn't want to go that route since I don't know SQL, but found a colleague
who does and we think this will work just fine. Thanks to everyone!

"Peter Jamieson" wrote:

The trouble with "the advice" is that none of the methods of connecting to
Excel data (or any other kind of data) can be guaranteed to do what you
need: each has its own limitations, and there are quite a few.

In this case, are you in a position to connect directly to the SQL Server?
If so, that still may not solve the problem, but it may well cut out the
"middle man".

Peter Jamieson
"cheshirecat" wrote in message
news
I've been reading the threads and trying the advice to no avail. When I
merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the
connection
method. Any ideas?

thanks,
Linda




  #8  
Old May 22nd, 2009, 09:51 PM posted to microsoft.public.word.mailmerge.fields
egordon
external usenet poster
 
Posts: 1
Default More Mail Merge truncating

Did anyone ever find an answer to this? I'm having the same problem...

"cheshirecat" wrote:

I've been reading the threads and trying the advice to no avail. When I merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the connection
method. Any ideas?

thanks,
Linda

  #9  
Old May 22nd, 2009, 11:27 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default More Mail Merge truncating

1. The answer that seemed to work for the original poster was
"connecting directly to SQL Server" - is that an option for you?

2. Can you be more precise about how you are padding the first row? IMO
a necessary condition for this to work would be that the cell in the
column where the data is truncated would need to contain a string which
was longer than 255 characters after trailing white space (and possibly
leading white space) is removed.. However, that may well not be a
sufficient condition.
Peter Jamieson

http://tips.pjmsn.me.uk

egordon wrote:
Did anyone ever find an answer to this? I'm having the same problem...

"cheshirecat" wrote:

I've been reading the threads and trying the advice to no avail. When I merge
into Word 2003 from an Excel spreadsheet that's pulling data off a SQL
Server, two fields are truncated at 255, but a third is not. I've tried
padding the first row, but it doesn't work, nor does chosing the connection
method. Any ideas?

thanks,
Linda

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.