Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Import huge CSV files into access

Posted on 2001-08-31
3
Medium Priority
?
422 Views
Last Modified: 2007-12-19
I have a macro that is supposed to import a huge csv file (more than 65536 lines) into an access table.  The only records that it imports are those where only column A is populated i.e. blank records.

When I open up the CSV file and save it (so it is only 65536 records) the import works correctly.

The macro uses the "Transfer Text" command with an import specification to create an intermediate table (which is later deleted) and an intermediate text file (which is not deleted).  It then uses an update query to update the real table.

Should I open up the csv file in wordpad and split it into two excel files?

Have you any other suggestions?

It would probably be easier if I e mailed some sample information
0
Comment
Question by:Al
[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
3 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 6445138
Did you try to link the .txt file as a table and issue a make-table query to store the result?

Just choose "new-table" and "Link" to get this link...

Nic;o)
0
 

Author Comment

by:Al
ID: 6445212
Nico

The problem is that the macro actually imports 7 files (sorry for saying it only did one)  each with different headings.  The macro makes sure that they all go onto one table and that each record has N/A for categories that do not apply to it.  For example equities (shares) do not have an expiry date, however futures do?  That is why I use the macro.
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 200 total points
ID: 6445232
Hi Al,

It won't change "my aproach". Just link all seven tables and use seven "append" queries to assign the input fields to the wanted result field in the target table.

Clear ?

Nic;o)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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 …

636 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