G
Guest
I have the following VB.Net code to read an Excel file and it works fine. How
do I take these records and insert into an Access 2000 database table?
gsDBName = "MyFile.xls"
gsProvider = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
gsDBName & "; Extended Properties=Excel 4.0;"
sConn = New System.Data.OleDb.OleDbConnection(gsProvider)
goDA = New System.Data.OleDb.OleDbDataAdapter(sExcelQuery, sConn)
goDS = New System.Data.DataSet
Try
goDA.Fill(goDS)
Catch ex As Exception
MsgBox(Err.Source & vbCr & Err.Description)
End Try
dgExcel.DataSource = goDS
do I take these records and insert into an Access 2000 database table?
gsDBName = "MyFile.xls"
gsProvider = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
gsDBName & "; Extended Properties=Excel 4.0;"
sConn = New System.Data.OleDb.OleDbConnection(gsProvider)
goDA = New System.Data.OleDb.OleDbDataAdapter(sExcelQuery, sConn)
goDS = New System.Data.DataSet
Try
goDA.Fill(goDS)
Catch ex As Exception
MsgBox(Err.Source & vbCr & Err.Description)
End Try
dgExcel.DataSource = goDS