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  

dont want to skip spaces



 
 
Thread Tools Display Modes
  #1  
Old September 11th, 2009, 08:35 PM posted to microsoft.public.word.mailmerge.fields
CRM User
external usenet poster
 
Posts: 3
Default dont want to skip spaces

Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?
  #2  
Old September 12th, 2009, 06:15 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default dont want to skip spaces

I've just checked that spaces in the middle of SQL Server data items
(with types CHAR, NCHAR, VARCHAR and NVARCHAR) are preserved here - I've
only checked Vista/Word 2007/SQL Server 2008, but I wouldn't expect Word
to throw away those spaces in other versions either.

So...
a. are the spaces definitily in the middle of the field? If they are
at the beginning or end, e.g. if one field contains "ABC" and the other
contains " DEF", then they probably will be discarded.
b. could CRM be using a SQL View that changes multiple spaces into a
single space (I don't have CRM running here so have no way to check that) ?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?

  #3  
Old September 13th, 2009, 12:18 AM posted to microsoft.public.word.mailmerge.fields
CRM User
external usenet poster
 
Posts: 3
Default dont want to skip spaces

Thank you Peter for your response.
I am talking about single field and spaces are in the middle of the data. I
have also checked in database and it is ok in there but when it is retrieved
in the mail merge document, spaces are removed. Any other clue?


"Peter Jamieson" wrote:

I've just checked that spaces in the middle of SQL Server data items
(with types CHAR, NCHAR, VARCHAR and NVARCHAR) are preserved here - I've
only checked Vista/Word 2007/SQL Server 2008, but I wouldn't expect Word
to throw away those spaces in other versions either.

So...
a. are the spaces definitily in the middle of the field? If they are
at the beginning or end, e.g. if one field contains "ABC" and the other
contains " DEF", then they probably will be discarded.
b. could CRM be using a SQL View that changes multiple spaces into a
single space (I don't have CRM running here so have no way to check that) ?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?


  #4  
Old September 13th, 2009, 12:59 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default dont want to skip spaces

Any other clue?

Not really!

But can you try to get the data directly from SQl Server? (I am not sure
whether that is what you are doing or not)

If not, I have to guess that CRM is alterting the data.

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Thank you Peter for your response.
I am talking about single field and spaces are in the middle of the data. I
have also checked in database and it is ok in there but when it is retrieved
in the mail merge document, spaces are removed. Any other clue?


"Peter Jamieson" wrote:

I've just checked that spaces in the middle of SQL Server data items
(with types CHAR, NCHAR, VARCHAR and NVARCHAR) are preserved here - I've
only checked Vista/Word 2007/SQL Server 2008, but I wouldn't expect Word
to throw away those spaces in other versions either.

So...
a. are the spaces definitily in the middle of the field? If they are
at the beginning or end, e.g. if one field contains "ABC" and the other
contains " DEF", then they probably will be discarded.
b. could CRM be using a SQL View that changes multiple spaces into a
single space (I don't have CRM running here so have no way to check that) ?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?

  #5  
Old September 13th, 2009, 10:23 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default dont want to skip spaces

What does your mail merge main document actually connect to? Is it
"directly" to the SQL Server database, or is it to some type of
intermediate file or database created by CRM?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Thank you Peter for your response.
I am talking about single field and spaces are in the middle of the data. I
have also checked in database and it is ok in there but when it is retrieved
in the mail merge document, spaces are removed. Any other clue?


"Peter Jamieson" wrote:

I've just checked that spaces in the middle of SQL Server data items
(with types CHAR, NCHAR, VARCHAR and NVARCHAR) are preserved here - I've
only checked Vista/Word 2007/SQL Server 2008, but I wouldn't expect Word
to throw away those spaces in other versions either.

So...
a. are the spaces definitily in the middle of the field? If they are
at the beginning or end, e.g. if one field contains "ABC" and the other
contains " DEF", then they probably will be discarded.
b. could CRM be using a SQL View that changes multiple spaces into a
single space (I don't have CRM running here so have no way to check that) ?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?

 




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 04:46 PM.


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