Solved

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

Posted on 2006-06-22
4
507 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 500 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

623 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