D
Darin
I am using the following connection string:
junk = "Provider=Microsoft.Jet.OLEDB.4.0;"
junk &= "Data Source=\data;"
junk &= "Extended Properties=""text;HDR=No;FMT=Delimited"""
And this works fine on file that are comma delimited w/ quotes around
all fields. But I now have a file that is comma delimited and the quotes
are only around the alpha fields, not the number field. This connection
string is used it reads the numbers as zero:
"abc","abcdefg",1.0,.0345,1.2345
The abc and abcdefg are read fine, the 1 is read fine, but the .0345 and
1.2345 are read as 0 and 1 respectively. Could this be because at the
beginning of the file the numbers have no decimal places
("abc","abcdefg",1,1,1) for the first 500 plus lines?
Darin
junk = "Provider=Microsoft.Jet.OLEDB.4.0;"
junk &= "Data Source=\data;"
junk &= "Extended Properties=""text;HDR=No;FMT=Delimited"""
And this works fine on file that are comma delimited w/ quotes around
all fields. But I now have a file that is comma delimited and the quotes
are only around the alpha fields, not the number field. This connection
string is used it reads the numbers as zero:
"abc","abcdefg",1.0,.0345,1.2345
The abc and abcdefg are read fine, the 1 is read fine, but the .0345 and
1.2345 are read as 0 and 1 respectively. Could this be because at the
beginning of the file the numbers have no decimal places
("abc","abcdefg",1,1,1) for the first 500 plus lines?
Darin