sagar_p_parakh
Member
- Joined
- Nov 7, 2008
- Messages
- 20
- Programming Experience
- Beginner
I want to merge the database table from ms access to vb.net in grid view .
I can display the single table in to the grid view. So please help me to display the multiple tables from database
I can display the single table in to the grid view. So please help me to display the multiple tables from database
VB.NET:
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\xyz.mdb"
Dim myConnection As OleDbConnection = New OleDbConnection()
myConnection.ConnectionString = connString
Dim da As OleDbDataAdapter = New OleDbDataAdapter("SELECT * from info", myConnection)
Dim ds As New DataSet
da.Fill(ds, "info")
DataGridView1.DataSource = ds.Tables(0)