Access table in DBGrid [Please resolve]
I use the following code to list all the tables in an mdb file.
VB Code:
dbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBName & ";Persist Security Info=False")
dbConnection.Open()
lstObjects.DataSource = dbTable
The code is working fine. But I dont want to list all the columns (like Table_Catalog, Table_Schema, etc). I just want only 4 cols (Name, Description, Date created and Date modified)
Also, after listing the tables, how to open a selected table from the list in DBGrid? I am finding ADO.Net very much confusing.
Please guide.
Regards