R
Randy
I think that this is a really simple question. I have a table adapter
set up with the various sql queries. I'd like to allow the user to
make changes to a given row on a form. Each of the changes is made
using textboxes (not a data grid). Once done, they click a Save
button, which should call the insert query on the tableadapter. I
can't seem to figure out how to call this. I could do it using a data
adapter, but there are many fields, so writing the query in code would
be very long and it's already there in the table adapter. Plus, if I
ever change the table schema, I can just change the insert command in
the TA and not have to update it my code.
Can anybody tell me what the code is to call this insert command?
e.g. myTA.Insert(myDS.myTable)
Thanks,
Randy
set up with the various sql queries. I'd like to allow the user to
make changes to a given row on a form. Each of the changes is made
using textboxes (not a data grid). Once done, they click a Save
button, which should call the insert query on the tableadapter. I
can't seem to figure out how to call this. I could do it using a data
adapter, but there are many fields, so writing the query in code would
be very long and it's already there in the table adapter. Plus, if I
ever change the table schema, I can just change the insert command in
the TA and not have to update it my code.
Can anybody tell me what the code is to call this insert command?
e.g. myTA.Insert(myDS.myTable)
Thanks,
Randy