Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to load a .prn file over 65 000 lines of data in Microsoft Access

Posted on 2006-06-22
4
Medium Priority
?
518 Views
Last Modified: 2008-03-04
HI,

I need to load in a table a .prn (text file) into microsoft access but I'm unable because the file has more than 65 000 lines.

Under 65 000 lines I would open the .prn file in excel and save it as a .xls file in order to import it in an access table. I can not import directly the .prn in access and have to go through excel first but over 65 000 lines excel will trunk the file.

I cannot lose any data. I have found a way around but it's not really efficient. I open the .prn in wordpad and split the file in 2 (under 65 000 lines each) with a copy-paste ation in another text file and open both in excel and save them in .xls to import them into an access table and then in access I combine both table to get back the original file.

There must be an easier way.....HELP!!! Urgent!!!
0
Comment
Question by:MetDia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
harfang earned 2000 total points
ID: 16961661
Hello MetDia

What is the stucture of your .prn file? You could show the first 10 lines here. Also, try to rename it to *.txt and then use the import assistant in Access. I don't think there is something you can import successfully in Excel that Access could not be made to understand...

(°v°)
0
 

Author Comment

by:MetDia
ID: 16961752
the .prn contains more than 120 column separated by a comma

example: "123","456","789",etc.

I have to open it in excel delimit the file with 'comma' and I'll have 1 column per data and then save it in .xls and then import it in access

can i skip the excel comma delimitation part ? if not how do I do this process with a 65 000 lines file ?

0
 

Author Comment

by:MetDia
ID: 16962035
the rename to .txt and then the import worked, thanks
0
 
LVL 58

Expert Comment

by:harfang
ID: 16965442
I'm glad it did. Success with your project!
(°v°)
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question