Microsoft.Jet.OLEDB error with csv file names

B

billsahiker

HI,

I am trying to use Microsoft.Jet.OLEDB to import csv files into a
dataset. ON some of the files I get an error and the one thing those
files have in common is they have spaces and hypens in the file name.
If I rename the file and remove the spaces and hypens, the import
works without an error. An example of one that failed:

Willem - pass 1 13 may 08.csv

Anyone know what is wrong? the filenames are valid -I can open them in
Excel. For now, I rename them in code.

Bill
 

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

Top