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  

Text Export needs CR/LF at end - how to??



 
 
Thread Tools Display Modes
  #1  
Old February 25th, 2007, 02:43 AM posted to microsoft.public.access.queries
willjs
external usenet poster
 
Posts: 2
Default Text Export needs CR/LF at end - how to??

Using Access 03 - Exporting table to Text with ~ delimiter. Receiving system
is Unix and requires CR or LF to separate the records as it reads - currently
it reads the 1000+ records as one.
  #2  
Old February 25th, 2007, 04:01 AM posted to microsoft.public.access.queries
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default Text Export needs CR/LF at end - how to??

Try adding a calculated field to your query that is the CR character:

MyCR: Chr(13)

--

Ken Snell
MS ACCESS MVP

"willjs" wrote in message
news
Using Access 03 - Exporting table to Text with ~ delimiter. Receiving
system
is Unix and requires CR or LF to separate the records as it reads -
currently
it reads the 1000+ records as one.



  #3  
Old February 25th, 2007, 05:00 AM posted to microsoft.public.access.queries
willjs
external usenet poster
 
Posts: 2
Default Text Export needs CR/LF at end - how to??

my query is simply a Select (records) ... from (table) statement.
how exactly would i add this?
i am not a SQL expert

"Ken Snell (MVP)" wrote:

Try adding a calculated field to your query that is the CR character:

MyCR: Chr(13)

--

Ken Snell
MS ACCESS MVP

"willjs" wrote in message
news
Using Access 03 - Exporting table to Text with ~ delimiter. Receiving
system
is Unix and requires CR or LF to separate the records as it reads -
currently
it reads the 1000+ records as one.




  #4  
Old February 25th, 2007, 05:09 AM posted to microsoft.public.access.queries
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default Text Export needs CR/LF at end - how to??

Open the query in Design view. Go to the first empty column, and click in
the Field: cell. Type this:
MyChar: Chr(13)
Be sure that the "Show" checkbox is checked to "yes".

That will write a CR character as the last value in each row.
--

Ken Snell
MS ACCESS MVP


"willjs" wrote in message
...
my query is simply a Select (records) ... from (table) statement.
how exactly would i add this?
i am not a SQL expert

"Ken Snell (MVP)" wrote:

Try adding a calculated field to your query that is the CR character:

MyCR: Chr(13)

--

Ken Snell
MS ACCESS MVP

"willjs" wrote in message
news
Using Access 03 - Exporting table to Text with ~ delimiter. Receiving
system
is Unix and requires CR or LF to separate the records as it reads -
currently
it reads the 1000+ records as one.






  #5  
Old February 25th, 2007, 07:41 AM posted to microsoft.public.access.queries
John Nurick
external usenet poster
 
Posts: 492
Default Text Export needs CR/LF at end - how to??

If you're using TransferText to export the table, it automatically uses
CRLF (\x0D0A) anyway.

But in Unix the standard newline is just LF (\x0A), so maybe it's the
CRs that are causing the trouble. Try filtering them out of the file: a
web search for something like
convert text windows unix
will find a variety of utilities that can do this.

If the Unix system parses the filtered file correctly, include the
filtering in the regular workflow (with luck it will just mean adding a
line to a shell script on the Unix side, or you can do it in Access
VBA).


On Sat, 24 Feb 2007 18:43:05 -0800, willjs
wrote:

Using Access 03 - Exporting table to Text with ~ delimiter. Receiving system
is Unix and requires CR or LF to separate the records as it reads - currently
it reads the 1000+ records as one.


--
John Nurick [Microsoft Access MVP]

Please respond in the newsgroup and not by email.
 




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 11:01 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.