BlackByte
Well-known member
Hi i have a database called Inventory.mdb, that has two tables, tblInventory and tblAdmin. I use the following code to access tblInventory :
what i would like to know is how do i access tblAdmin, using the same connection and dataAdapter, or should i create seperate ones
VB.NET:
Dim ds As New Data.Dataset
Dim da As New Oledb.OledbDataAdapter
Dim con As New Oledb.OledbConnection
Dim sql As String
'Under form_load
con.ConnectionString = "MICROSOFT.Jet.Oledb.4.0; Data Source = C:\Inventory.mdb"
sql = "SELECT * FROM tblInventory"
da = New Oledb.OledbDataAdapter(sql,con)
da.fill(ds, "tblInventory")