Text file import

  • Thread starter Thread starter Kevin Spencer
  • Start date Start date
K

Kevin Spencer

Hi Guys,

I need to import a large CSV file into Access, but when I try to I receive
the following error message:

"Bad file name or number"

I know the file is OK, so I am presuming it is the size.

Can anyone help?

Thanks

Kevin
 
You could open the text file in code and write it into a recordset bound to
a table. But, before we go there, is the path to the text file a long one?
How did you try to import?
 
Hi Ken

The text file is on my desktop, I went to get external data -> Import. I
then chose thr file type as text file and then clicked on OK, Access has a
think about it for a couple of seconds and then produces the error.

Thanks

Kevin
 
Kevin said:
Hi Guys,

I need to import a large CSV file into Access, but when I try to I
receive the following error message:

"Bad file name or number"

I know the file is OK, so I am presuming it is the size.

Can anyone help?

Thanks

Kevin

Could you give is the exact name of the file. As I recall access does
not like some non-alpha characters in names.
 
The file does have an underscore in it!


Joseph Meehan said:
Could you give is the exact name of the file. As I recall access does
not like some non-alpha characters in names.
 
Thanks Karl, I had that feeling! I was trying to avoid using SQL, but there
you go


Kevin
 
<g > Nah, I wouldn't "tell you off", but as noted elsethread, the amount of
data is going to exceed what one file in ACCESS can hold.

It might be doable to break the text file into separate, smaller sizes and
import them into separate ACCESS databases. You then could link to all the
databases for doing searching, etc. or whatever you want to do with the
data. Might make the queries a bit more complex, but may serve your purpose.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top