Hi guys,
this is the code I have stumbled upon:
From here, I understood that I'm selecting an Excel file, and I can display it through the datagrid (which I managed, that part was okay). How do I select only a specific value from a column? Let's say I want to take D20 and display it on the Textbox.
Thanks guys.
Vizier87
this is the code I have stumbled upon:
Code:
Connection = New System.Data.OleDb.OleDbConnection _
("provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & TextBox1.Text & ";Extended Properties=Excel 8.0;")
MyCommand = New System.Data.OleDb.OleDbDataAdapter("select * from [Sheet1$]", Connection)
TextBox2.Text = ?????
Thanks guys.
Vizier87