'create a command
builder variable
Dim cb As New
OleDb.OleDbCommandBuilder(da)
'create a variable to hold the
new record in a row
Dim dsNewRow As DataRow
'create the new row
dsNewRow = ds.Tables("datasetname").NewRow()
'put the new data in the row
dsNewRow.Item(1) =
txtName1.Text
dsNewRow.Item(2) =
txtName2.Text
'add the row to the data set
ds.Tables("datasetname").Rows.Add(dsNewRow)
'tell the data adaptor to update the
data base
da.Update(ds, "TableName")