Click here to Skip to main content
15,902,275 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: developing my own web browser Pin
Dave Kreskowiak12-Sep-03 8:01
mveDave Kreskowiak12-Sep-03 8:01 
GeneralSimple problem Pin
ivanji11-Sep-03 4:50
ivanji11-Sep-03 4:50 
GeneralRe: Simple problem Pin
NetPointerIN11-Sep-03 9:35
NetPointerIN11-Sep-03 9:35 
GeneralRe: Simple problem Pin
Ray Cassick11-Sep-03 9:59
Ray Cassick11-Sep-03 9:59 
GeneralRe: Simple problem Pin
Member 57284911-Sep-03 11:57
Member 57284911-Sep-03 11:57 
GeneralRe: Simple problem Pin
ivanji11-Sep-03 12:41
ivanji11-Sep-03 12:41 
GeneralPass array Pin
sardinka11-Sep-03 4:42
sardinka11-Sep-03 4:42 
Generalreadin excel data into a dataset Pin
Anonymous11-Sep-03 4:10
Anonymous11-Sep-03 4:10 
Looking in the help index I find usefull code to read excel data into a dataset. Only I have one question about this subject and I hope someone has had this problem as well...
Connecting and receiving data is done really quick using the code below. It's only that excel data can only be interpreted if values are doubles. Any other format can't be recognized and will give value DBNull...
Does anybody know how to solve this problem?

Thnx,
.Netplayer

============================================================
Dim DS As System.Data.DataSet
Dim MyCommand As System.Data.OleDb.OleDbDataAdapter
Dim MyConnection As System.Data.OleDb.OleDbConnection

MyConnection = New System.Data.OleDb.OleDbConnection( _
"provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source=C:\myData.XLS; " & _
"Extended Properties=Excel 8.0;")
' Select the data from Sheet1 of the workbook.
MyCommand = New System.Data.OleDb.OleDbDataAdapter( _
"select * from [Sheet1$]", MyConnection)

DS = New System.Data.DataSet()
MyCommand.Fill(DS)
MyConnection.Close()
=================================================================
GeneralGraphs connected to Interface & db Pin
Inneedofluv10-Sep-03 19:57
Inneedofluv10-Sep-03 19:57 
GeneralI want to lock the Access database (VB.6) Pin
Nazila Naderi10-Sep-03 15:40
Nazila Naderi10-Sep-03 15:40 
GeneralRe: I want to lock the Access database (VB.6) Pin
Meysam Khayatan11-Sep-03 12:03
Meysam Khayatan11-Sep-03 12:03 
GeneralEasy VBScript question about the file pointer Pin
monkeyman9910-Sep-03 12:10
sussmonkeyman9910-Sep-03 12:10 
GeneralRe: Easy VBScript question about the file pointer Pin
NetPointerIN11-Sep-03 9:42
NetPointerIN11-Sep-03 9:42 
GeneralBasic DataGrid Navigation. Pin
Steverty10-Sep-03 10:32
Steverty10-Sep-03 10:32 
Generalconverting vb double to vc double Pin
Member 57284910-Sep-03 8:04
Member 57284910-Sep-03 8:04 
GeneralRe: converting vb double to vc double Pin
Nic Rowan10-Sep-03 23:44
Nic Rowan10-Sep-03 23:44 
GeneralRe: converting vb double to vc double Pin
Member 57284911-Sep-03 4:07
Member 57284911-Sep-03 4:07 
GeneralRe: converting vb double to vc double Pin
Nic Rowan11-Sep-03 8:06
Nic Rowan11-Sep-03 8:06 
GeneralConvert from VS.Net 2003 to VS.Net Pin
Orcrist10-Sep-03 6:12
Orcrist10-Sep-03 6:12 
GeneralDeleteCommand problem.. Pin
GJul10-Sep-03 4:48
GJul10-Sep-03 4:48 
Generalall about exceptions Pin
fume9-Sep-03 22:09
fume9-Sep-03 22:09 
GeneralRe: all about exceptions Pin
SimonS9-Sep-03 22:11
SimonS9-Sep-03 22:11 
GeneralRe: all about exceptions Pin
fume10-Sep-03 14:08
fume10-Sep-03 14:08 
GeneralRe: all about exceptions Pin
fume10-Sep-03 14:17
fume10-Sep-03 14:17 
Generalerror bad dll calling convention Pin
Member 5728499-Sep-03 12:15
Member 5728499-Sep-03 12:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.