Sub cdb(ByVal ds As DataSet) 'this establishes connection to db' sql = "SELECT * FROM Stock Management" con = New OleDbConnection(cs) con.Open() da = New OleDbDataAdapter(sql, cs) da.Fill(ds, "Stock Management") maxr = ds.Tables("stockmanagement").Rows.Count
da.Fill(ds, "Stock Management")
sql = "SELECT * FROM 'Stock Management'"
sql = "SELECT * FROM [Stock Management]"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)