I am trying to add new row to the table
but i can't
error is object reference not set to an instance of an object

code:
VB Code:
  1. Dim cust_det_ds As New DataSet
  2.   Dim cust_det_da As New OleDb.OleDbDataAdapter
  3.   If count_custdetails2 = 0 Then 'if the customer is not in cust_details2 table
  4.       Dim cb1 As New OleDb.OleDbCommandBuilder(cust_det_da)
  5.    Dim dsNewRow As DataRow
  6.       dsNewRow = cust_det_ds.Tables("cust_details2").NewRow()
  7.       dsNewRow.Item("Account_no") = txtCustNo.Text
  8.  dsNewRow.Item("Title") = txtTitle.Text
  9.     dsNewRow.Item("Initial") = txtInitial.Text
  10.     dsNewRow.Item("Surname") = txtSurname.Text
  11.       dsNewRow.Item("HouseName") = txtHname.Text
  12.      dsNewRow.Item("Address1") = txtAdd1.Text
  13.        dsNewRow.Item("Address2") = txtAdd2.Text
  14.             dsNewRow.Item("Address3") = txtAdd3.Text
  15.               dsNewRow.Item("Address4") = txtAdd4.Text
  16.                  dsNewRow.Item("Address5") = txtAdd5.Text
  17.        dsNewRow.Item("Postcode") = txtPostcode.Text
  18.        cust_det_ds.Tables("cust_details2").Rows.Add(dsNewRow)
  19.     cust_det_da.Update(cust_det_ds, "cust_details2")
  20.  Else
  21.   End If

cust_det_ds.Tables("cust_details2").NewRow() error is in this line
Any idea?
thanks