W
Wayne Wengert
I have a VB.NET app in which I am using the following code to add a new row.
ds.Tables("UnitsTable").Rows.Add(dr) ' Add the new row
da.InsertCommand = cmdBuilder.GetInsertCommand
da.Update(ds, "UnitsTable")
At this point I want to get the value of the Identity field that has just
been added to the underlying table ("UnitsTable" is based on a Select
against a table named "Units")
I searched google but the examples I found were using recordsets and I could
not adapt them to work. Pointers to any examples or explinations will be
appreciated.
Wayne
ds.Tables("UnitsTable").Rows.Add(dr) ' Add the new row
da.InsertCommand = cmdBuilder.GetInsertCommand
da.Update(ds, "UnitsTable")
At this point I want to get the value of the Identity field that has just
been added to the underlying table ("UnitsTable" is based on a Select
against a table named "Units")
I searched google but the examples I found were using recordsets and I could
not adapt them to work. Pointers to any examples or explinations will be
appreciated.
Wayne