J
Jerry
Grettings all,
I'm having a problem with accessing data in a column of an Excel
spreadsheet.
It seems that when I access the spreadsheet using Oledb Connection
method, a column get's typecasted according to the type of that column
that occupies 51% of that data.
So, when I'm trying to retrieve all the data in that column, if 51% of
the column is integer, it nulls out the non-integer values!?
Here's example of the connection string
Dim DBCon As System.Data.OleDb.OleDbConnection
DBCon = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data
source=C:\Publisher.XLS;Extended
Properties=Excel 8.0;")
DBCommand = New System.Data.OleDb.OleDbDataAdapter("select * from
[Inventory$]", DBCon)
Thanks in advance for the help,
jT
I'm having a problem with accessing data in a column of an Excel
spreadsheet.
It seems that when I access the spreadsheet using Oledb Connection
method, a column get's typecasted according to the type of that column
that occupies 51% of that data.
So, when I'm trying to retrieve all the data in that column, if 51% of
the column is integer, it nulls out the non-integer values!?
Here's example of the connection string
Dim DBCon As System.Data.OleDb.OleDbConnection
DBCon = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data
source=C:\Publisher.XLS;Extended
Properties=Excel 8.0;")
DBCommand = New System.Data.OleDb.OleDbDataAdapter("select * from
[Inventory$]", DBCon)
Thanks in advance for the help,
jT