Hello everyone, can you help?
I am trying to build a site using visual studio with a access database back end, basically two of the tables in the database are linked and I want to update the both of them at the same time.
What I have is a "Formview" data connection where three of the input boxes link to a "Names" table and one input box links to the "Group" table. I want to insert data into both tables on the same button click.
When I try though I can't seem to get this to work, I thought you could put a standard INSERT query in the code referencing the two tables as below
INSERT INTO Names (person1, Address, Postcode) VALUES (@person1, @Address, @Postcode) AND INSERT INTO Group (GroupName) VALUES (@GroupName)
I keep getting a error about inserting a ";" at the end but tried that and nothing works.
Does anyone have any thoughts at all? Am I missing something obvious?