How can I insert data to multiple related tables in access database using vb.net? For example, I have two tables that are related to each other namely: 1. Group table 2. Member table
all members in Member Table are belong to a specific group in Group Table.
Access can, i recall, update a join view quite easily:
VB.NET:
UPDATE
(SELECT * FROM a INNER JOIN b ON a.id = b.id)
SET
col = value
I dont know what happens if you insufficiently specify the query such that is is (partially) cartesian - i.e. if more than one row if b is matched to a.. there would necessarily be a puzzle of what value gets written to b. My advice is not to write a cartesian query
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.