Solved

Import huge CSV files into access

Posted on 2001-08-31
3
415 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
  • 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 100 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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 …

810 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