ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Microsoft.Jet.OLEDB error with csv file names (https://www.excelbanter.com/excel-discussion-misc-queries/187378-microsoft-jet-oledb-error-csv-file-names.html)

[email protected]

Microsoft.Jet.OLEDB error with csv file names
 
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


All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com