Computing.Net > Forums > Office Software > Importing text in Access 2003

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Importing text in Access 2003

Reply to Message Icon

Name: tclark333
Date: October 24, 2006 at 11:58:51 Pacific
OS: XP
CPU/Ram: na
Product: na
Comment:

I'm trying to import a large text file into Access. The data is separated with commas, but there are no line breaks. Each line just runs together. When I use the import wizard in Access, it puts everything on one line. I think each field is the same length, so might there be a way to tell it to make a new line after so many characters?



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: October 24, 2006 at 15:27:31 Pacific
Reply:

Are you selecting "Text Files" as the import filetype? If the file is a csv file, then the comma is the field separater.

Life is more painless for those who are brainless.


0

Response Number 2
Name: tclark333
Date: October 25, 2006 at 04:29:12 Pacific
Reply:

Yes, I have been selecting text file as the import file type.


0

Response Number 3
Name: Jennifer SUMN
Date: October 25, 2006 at 05:37:40 Pacific
Reply:

Is the file a txt file or a csv file?

Life is more painless for those who are brainless.


0

Response Number 4
Name: tclark333
Date: October 31, 2006 at 08:40:46 Pacific
Reply:

It was a text file (.txt). I have since got around this problem. It looked like there were the same amount of commas in each line, so I wrote a small program to read through the entire file, counting the commas along the way. Each time it read the amount of commas that were supposed to be in a line, it would insert a carriage return there.

This wasn't the most efficient solution, as it took about 30-45 minutes to read through the ~7000 pages in Word, but it worked in the end!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Importing text in Access 2003

Import .txt to Access 2003 www.computing.net/answers/office/import-txt-to-access-2003-/9668.html

OLE error in Access 2003 www.computing.net/answers/office/ole-error-in-access-2003/2169.html

Forms in Access 2003 www.computing.net/answers/office/forms-in-access-2003/8903.html