Connecting Tech Pros Worldwide Help | Site Map

Data export form table broken

  #1  
Old July 10th, 2007, 07:45 PM
Sashi
Guest
 
Posts: n/a
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, 04:05 PM
Sashi
Guest
 
Posts: n/a

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, 04:25 PM
Bob Quintal
Guest
 
Posts: n/a

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

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Tables or just one big one? TheServant answers 11 April 7th, 2008 11:06 PM
Please guide me arsetoodeh answers 1 February 5th, 2008 10:19 AM
Access Hangs in Task Manager - Need Expert Help! pic078 via AccessMonster.com answers 9 April 28th, 2007 08:25 AM
Import/Normalize strategy - More issues - New thread Steve Jorgensen answers 4 November 12th, 2005 07:45 PM