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 Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Soft Carriage Return



 
 
Thread Tools Display Modes
  #1  
Old December 8th, 2009, 09:14 AM posted to microsoft.public.access.queries
Scott
external usenet poster
 
Posts: 1,119
Default Soft Carriage Return

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?
  #2  
Old December 8th, 2009, 03:13 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Soft Carriage Return

Scott wrote:

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?



You have to use Word's new line code. I don't know what
that is, but in Excel, it's just Chr(10), maybe it the same
in Word or maybe it's just Chr(13). Why they are different
in different parts of office is lost in the mists of time.

--
Marsh
MVP [MS Access]
  #3  
Old December 8th, 2009, 03:26 PM posted to microsoft.public.access.queries
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Soft Carriage Return

Scott -

Try just the line feed Chr$(10) without the carriage return Chr$(13).
--
Daryl S


"Scott" wrote:

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?

  #4  
Old December 8th, 2009, 03:31 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Soft Carriage Return

I do not know about your database but mine uses CTRL+Enter instead of
SHIFT+Enter.

I just checked ( Asc(Right(Left([MyField],2),1)) CTRL+Enter following
first character) and the character inserted is Chr(13).


--
Build a little, test a little.


"Scott" wrote:

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?

  #5  
Old December 9th, 2009, 10:43 AM posted to microsoft.public.access.queries
Scott
external usenet poster
 
Posts: 1,119
Default Soft Carriage Return

Neither Chr$(10) by itself or Chr$(13) by itself works. Thanks for trying
and I would appreciate any other ideas.

"KARL DEWEY" wrote:

I do not know about your database but mine uses CTRL+Enter instead of
SHIFT+Enter.

I just checked ( Asc(Right(Left([MyField],2),1)) CTRL+Enter following
first character) and the character inserted is Chr(13).


--
Build a little, test a little.


"Scott" wrote:

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?

  #6  
Old December 17th, 2009, 09:59 AM posted to microsoft.public.access.queries
Scott
external usenet poster
 
Posts: 1,119
Default Soft Carriage Return



"Marshall Barton" wrote:

Scott wrote:

I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?



You have to use Word's new line code. I don't know what
that is, but in Excel, it's just Chr(10), maybe it the same
in Word or maybe it's just Chr(13). Why they are different
in different parts of office is lost in the mists of time.

--
Marsh
MVP [MS Access]
.

It is Chr$(11). Got it from the Word side of the house.
  #7  
Old December 17th, 2009, 06:29 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Soft Carriage Return

Scott wrote:
"Marshall Barton" wrote:
Scott wrote:
I have a Word document that gets address data from a query in a database. If
the query has a hard return [Chr$(13) + Chr$(10)], the address does not line
up properly in the Word document. If I manually enter a soft return (Shift +
Enter) the address lines up properly. How can I put in a soft return in the
query?



You have to use Word's new line code. I don't know what
that is, but in Excel, it's just Chr(10), maybe it the same
in Word or maybe it's just Chr(13). Why they are different
in different parts of office is lost in the mists of time.


It is Chr$(11). Got it from the Word side of the house.



Well, I don't feel too bad about not guessing Word would use
Vertical Tab as the code for a new line ;-|

--
Marsh
MVP [MS Access]
 




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 10:22 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.