Connecting Tech Pros Worldwide Help | Site Map

Data export form table broken

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 10th, 2007, 06:45 PM
Sashi
Guest
 
Posts: n/a
Default Data export form table broken

Hi All,

I have a table from which I want to export the data as a plain text
file.
I exported the data using the "Export" option and selected the comma
as a separator and the " as the Text Qualifier.

I have about 19800 records but a few hundred are broken over multiple
lines.
That is, the majority of records are exported correctly but some of
them are split up into more than one line?

For example this is a record: (selected via running a select from
query)

134S United States Of America 11695 "Woodland Hills - Oxnard
, 21550 Oxnard Street, Main Plaza" Woodland Hills California 91367
No No No No Site02720 Branch - Smith Barney & Private
Bank
When Access writes it out to a text file, the record is being split
after the first occurrence of the word "Oxnard" and I'm not sure why
this is happening.

Any suggestions?
Thanks,
Sashi


  #2  
Old July 11th, 2007, 03:05 PM
Sashi
Guest
 
Posts: n/a
Default Re: Data export form table broken

On Jul 10, 2:37 pm, Sashi <small...@gmail.comwrote:
Quote:
Hi All,
>
I have a table from which I want to export the data as a plain text
file.
I exported the data using the "Export" option and selected the comma
as a separator and the " as the Text Qualifier.
>
I have about 19800 records but a few hundred are broken over multiple
lines.
That is, the majority of records are exported correctly but some of
them are split up into more than one line?
>
For example this is a record: (selected via running a select from
query)
>
134S United States Of America 11695 "Woodland Hills - Oxnard
, 21550 Oxnard Street, Main Plaza" Woodland Hills California 91367
No No No No Site02720 Branch - Smith Barney & Private
Bank
When Access writes it out to a text file, the record is being split
after the first occurrence of the word "Oxnard" and I'm not sure why
this is happening.
>
Any suggestions?
Thanks,
Sashi
All, I found the problem. I receive this data from another source and
it turns out that there are line breaks in the middle of a field.
To get rid of the line breaks, I'm running the following command:
UPDATE [tbl_CircuitData-Musto] SET FromLocation =
Replace(FromLocation,Chr$(13) & Chr$(10),'\n');
However, this still doesn't work.
Any help?
Thanks,
Sashi

  #3  
Old July 11th, 2007, 03:25 PM
Bob Quintal
Guest
 
Posts: n/a
Default Re: Data export form table broken

Sashi <smalladi@gmail.comwrote in
news:1184165931.754859.13850@r34g2000hsd.googlegro ups.com:
Quote:
On Jul 10, 2:37 pm, Sashi <small...@gmail.comwrote:
Quote:
>Hi All,
>>
>I have a table from which I want to export the data as a
>plain text file.
>I exported the data using the "Export" option and selected
>the comma as a separator and the " as the Text Qualifier.
>>
>I have about 19800 records but a few hundred are broken over
>multiple lines.
>That is, the majority of records are exported correctly but
>some of them are split up into more than one line?
>>
>For example this is a record: (selected via running a select
>from query)
>>
>134S United States Of America 11695
>"Woodland Hills - Oxnard , 21550 Oxnard Street, Main Plaza"
> Woodland Hills California 91367 No
> No
>No No Site02720
> Branch - Smith Barney & Private Bank
>When Access writes it out to a text file, the record is being
>split after the first occurrence of the word "Oxnard" and I'm
>not sure why this is happening.
>>
>Any suggestions?
>Thanks,
>Sashi
>
All, I found the problem. I receive this data from another
source and it turns out that there are line breaks in the
middle of a field. To get rid of the line breaks, I'm running
the following command: UPDATE [tbl_CircuitData-Musto] SET
FromLocation = Replace(FromLocation,Chr$(13) & Chr$(10),'\n');
However, this still doesn't work.
Any help?
Thanks,
Sashi
>
'\n' doesn't do much, just use " "

Some text files don't use chr(13) & chr(10), just one or the
other.try replacing chr(13) with " " and see if that helps



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.