Link to home
Start Free TrialLog in
Avatar of Al
Al

asked on

Import huge CSV files into access

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
Avatar of nico5038
nico5038
Flag of Netherlands image

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)
Avatar of Al
Al

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of nico5038
nico5038
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial