J
jeff
i am using ms access as my database
i can successfully delete a single record from a table using :
targetRow.Delete()
Try
reportDataAdapter.Update(reportDataSet, "table1" )
reportDataSet.AcceptChanges()
Catch ex As OleDbException
reportCompanySitesDataSet.RejectChanges()
MessageBox.Show(ex.Message)
End Try
however, i can't delete all records in a table at once using some simple and
fast way.
what i try is :
reportTable.Rows.Clear()
Try
reportDataAdapter.Update(reportDataSet, "table1" )
reportDataSet.AcceptChanges()
Catch ex As OleDbException
reportCompanySitesDataSet.RejectChanges()
MessageBox.Show(ex.Message)
End Try
it fails (without any runtime error)
if you have an example / suggestion, pls let me know.
thanks.
i can successfully delete a single record from a table using :
targetRow.Delete()
Try
reportDataAdapter.Update(reportDataSet, "table1" )
reportDataSet.AcceptChanges()
Catch ex As OleDbException
reportCompanySitesDataSet.RejectChanges()
MessageBox.Show(ex.Message)
End Try
however, i can't delete all records in a table at once using some simple and
fast way.
what i try is :
reportTable.Rows.Clear()
Try
reportDataAdapter.Update(reportDataSet, "table1" )
reportDataSet.AcceptChanges()
Catch ex As OleDbException
reportCompanySitesDataSet.RejectChanges()
MessageBox.Show(ex.Message)
End Try
it fails (without any runtime error)
if you have an example / suggestion, pls let me know.
thanks.