Ms Access DB 3 tables in one DataGridView (with C#)
I have MS Access DB named DataBase01;in it I have 3 tables TProd, TServ, and TUser.
I use
strSQLProd = "SELECT * FROM TProd";
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DataBase01.mdb";
OleDbDataAdapter daProd = new OleDbDataAdapter(strSQLProd, strConnection);
to query for data from the first table
What I need is to get the info from all the tables,composit them into one table ,store it in adeqate way (in DataSet's forth table for example or in separate one), present the user with it in DataGridView and after he does changes to it I want to update the info back to the data base.
Can I map that new Table and all of it's collumns to coresponding columns in the child tables. If so by changing one value or another would that update the coresponding values in each table respectivly - if i change value in column 3 in my end table that coresponds to value from the second table for examlpe, would the Update see that the mapping points to that specific table and udate it?