Hi
I am trying to append some records form tmpSource to tmpDest table using
datasets
Tables tmpSourec and tmpDest are identical.
My setup is the following:
- daSource - data adapter for source table
- daDest - data adapter for Dest table (containing select, update, delete
and
append commands)
- dsSourceDest - generated dataset containing both Source and Dest table
I want to read data from tmpSource and put it in tmpDest like that:
'-------------------------
'-- Reading source
daSource.Fill(DsSourceDest1)
MsgBox(DsSourceDest1.Tables("tmpSource").Rows.Coun t) '-- contains
all my records
'-- trying to update the DestTable, using DsSourceDest1 (containing all my
records)
Dim i As Integer = daDest.Update(DsSourceDest1, "tmpDest")
'---------------------------
So I successfully load dsSource with a data, but daDest.Update doesn't
update the Dest table.
Can someone tell me what is wrong with this approach?
Thanks
Yakimo