hmm i cant understand right now. ill be back tomorrow. i hope that someone can write for me a code which works already and can also comment it alot so i know exactly what does it do. cya tomorrow i guess
edit.
about that Save table button.
this should work but it gives error while runing.
name = the name of the table
connect = connect to sql database
Dim da As New SqlDataAdapter("select * from" & name, connect)
Dim cb As New SqlCommandBuilder(da)
da.UpdateCommand = cb.GetUpdateCommand()
da.Update(ds.Tables(name))
ds.AcceptChanges
When i create a table and write some information in it and select that Save table button it stops and gives an error
"An unhandled exception of type System.InvalidOperationException occurred in system.data.dll
Additional information: Dynamic Sql generation for the updatecommand is not supported against a selectcommand that does not return any key column information.
And it points that green line to "da.UpdateCommand = cb.GetUpdateCommand()"
when i put my cursor on that green line it tells "This code has called into another function. When that function is finished, this is the next statement that will be executed.
Thats weird because i made this straight from one tutorial and it should work :/