473,383 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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

Jul 10 '07 #1
2 1833
On Jul 10, 2:37 pm, Sashi <small...@gmail.comwrote:
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

Jul 11 '07 #2
Sashi <sm******@gmail.comwrote in
news:11*********************@r34g2000hsd.googlegro ups.com:
On Jul 10, 2:37 pm, Sashi <small...@gmail.comwrote:
>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

Jul 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
4
by: Paolo | last post by:
Hello, I am trying to create a procedure to export my Access data to a word template. I would like to export data from two tables to a word file at the same time. My two tables are named CASES...
3
by: Paolo | last post by:
Friends, I have a problem with my Access database when trying to export data from a form to a Word file. I use a form to store data in a table. Both table and form are named CONTACT. I use a...
7
by: Paolo | last post by:
I know I should not be doing this, but I find it very useful. I have a database in Access which stores data for a small company. Sometimes we need to add similar information to different tables....
9
by: tomblower | last post by:
Access 2000 fully updated Three PCs manage data held on a server. They each have a front-end mdb file linked to tables on the server and on each PC. A problem has arisen over the following line...
1
by: Anonieko | last post by:
Here are some of the approaches. 1. Transform DataGrid http://www.dotnetjohn.com/articles.aspx?articleid=36 3. Use the Export approach ...
7
Merlin1857
by: Merlin1857 | last post by:
Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can...
2
by: kashif73 | last post by:
Hi, I want to export data from 4 Access tables to Excel using VBA. The user selects 2 different DATES from the form & based on DATEs criteria all record from 4 tables should be extracted to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.