>I have an ongoing problem that I can not seem to figure out.
>
[quoted text clipped - 17 lines]
> why I do not want to import the data in the dataset, and then create a
> new table and process the reocords again.
The two connections strings that I wrote about are:
text files(odbc connection)
cs = "Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=" + FilePath
excel files(oledb connection)
cs = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath +
";Extended Properties=""Excel 8.0;IMEX=1"""
I have tryed using extended properties "HDR=YES" and HDR=NO" and still
the first record was still in the header, however, I might not have
coded it correctly or overlooked something.
cs = "Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=" + FilePath +
";Extended Properties=YES" (I have tried NO also)
> Jimmy,
>
> Most likely your connection string, but if you don't show that, than the
> chance that somebody can help you is zero.
Cor Ligthert [MVP] - 27 Aug 2006 06:01 GMT
Jimmy,
Mostly has this to do with the quotes you are using, and I think that it is
in your case the same.
Both Ken and Paul have written something about your question in this thread
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/t
hread/4bb49f484a9b3b5c/fb75aac56c0fba44?#fb75aac56c0fba44
I hope this helps,
Cor
> The two connections strings that I wrote about are:
> text files(odbc connection)
[quoted text clipped - 14 lines]
>> Most likely your connection string, but if you don't show that, than the
>> chance that somebody can help you is zero.