hi i tried to add and delete a record but i always get an error in my Dataadapter it's something like error in system....dll.
here is the code i typed
if anyone could help thanks in advance

the sqlcommand is
sqlcommand.commandtext="Select * from Hardware"

VB Code:
  1. intteller = 0
  2.         If intteller <> -1 Then
  3.  
  4.  
  5.             Dim nieuweRij As DataRow
  6.             Dim mijntabel As New DataTable
  7.             mijntabel = beheerdersDataset.Tables(0)
  8.  
  9.             nieuweRij = beheerdersDataset.Tables(0).NewRow()
  10.  
  11.             nieuweRij.Item("Nr") = txtnr.Text
  12.             nieuweRij.Item("Voornaam") = txtvoornaam.Text
  13.             nieuweRij.Item("Achternaam") = txtachternaam.Text
  14.             nieuweRij.Item("E-mail") = txtemail.Text
  15.             nieuweRij.Item("GSM") = txtgsm.Text
  16.  
  17.             beheerdersDataset.Tables(0).Rows.Add(nieuweRij)
  18.             '   ' here is get my error in the next line
  19.             mijnAdapter.Update(beheerdersDataset)
  20.  
  21.             MsgBox("New Record added to the Database")
  22.  
  23.         End If
  24.  
  25. 'delete
  26.  
  27.         hardwareDataset.Tables(0).Rows(intteller).Delete()
  28.         aantalrec = aantalrec - 1
  29.  
  30.         intteller = 0
  31.         Navigatierecords()
  32.        ' here is get my error in the next line
  33.         mijnAdapter.Update(hardwareDataset)