no error handling on dataset inesert?
hi
im using vb.net 2005
I have a simple insert using a typed dataset
exactly the same process in another project works fine
Dim newRow As myDataSet.tblFieldRow = myDataSet.tblField.NewRow
newRow.firstname = "jon"
newRow.surname = "smith"
myDataSet.tblField.AddtblFieldRow(newRow)
No data is being inserted into tblfield , but there is no error message
again this works fine , inserting the data in another project
It gives no error message when running the code , so I just dont know where to start debugging this
any ideas ?
thanks
Re: no error handling on dataset inesert?
:wave:
Are you sure it's exactly the same? There may be some subtle difference that you're not seeing.
Are both pieces of code referencing the same table and using the same typed dataset?
Are you updating the same fields in both sets of code?
There's a monkey wrench somewhere. ;)
Re: no error handling on dataset inesert?
try with
Code:
Dim newRow As datarow = myDataSet.tblField.NewRow
Re: no error handling on dataset inesert?
Do you mean it doesn't insert the row into the tblfield in your database
or it doesn't insert hte row into the table in your dataset?