How to connect to .CSV file ?
- From: "fniles" <fniles@xxxxxxxxxx>
- Date: Tue, 10 Oct 2006 16:07:12 -0500
I have a .CSV file (comma delimited) that I want to open using OLEDB, but I
get the error "External table is not in the expected format."
If I save the .CSV file to an .XLS file, I can open the connection with no
problem.
What is the correct way to open a .CSV file ?
If I can not open the CSV file, how can I programmatically save the CSV file
to an XLS file ?
Thanks a lot.
dim myCon OleDb.OleDbConnection
myCon = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\file.csv; Extended Properties=""Excel 8.0; HDR=NO; IMEX=1""")
--> error "External table is not in the expected format."
.
- Follow-Ups:
- Re: How to connect to .CSV file ?
- From: adi suciu
- Re: How to connect to .CSV file ?
- Prev by Date: Re: MS Office Update to Access 2003 killing me?
- Next by Date: Re: How to connect to .CSV file ?
- Previous by thread: Ceating a table in a projects subfolder by not specifiing the whole path(VFP)....
- Next by thread: Re: How to connect to .CSV file ?
- Index(es):
Relevant Pages
|
|