title: Dataset not being updated vb.net
body: <p>While loading form i fill the dataset with following code:</p>
  
  <pre><code>Con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Congress.accdb;Persist Security Info=False"
  Con.Open()
  
  dAp1 = New OleDbDataAdapter("Select * from VotingRecords", Con)
  DS.Tables.Add("VotingRecords")
  dAp1.Fill(DS.Tables("VotingRecords"))
  
  BindingNavigator1.BindingSource = myBS
  myBS.DataSource = DS.Tables("VotingRecords")
  
  Me.BillComboBox.DataBindings.Add(New Binding("Text", myBS, "BillNumber", True))
  Me.CongressPersonComboBox.DataBindings.Add(New Binding("Text", myBS, "CID", True))
  Me.VoteComboBox.DataBindings.Add(New Binding("Text", myBS, "Vote", True))
  </code></pre>
  
  <p>here All Con, dAP1, DS, myBS variables are global or form level variables.</p>
  
  <p>When save button is clicked:</p>
  
  <pre><code>Try
      myBS.EndEdit()
      dAp1.Update(DS.Tables("VotingRecords"))
  Catch ex As Exception
      MsgBox("Error")
  End Try
  </code></pre>
  
  <p>Not sure why its showing me error; Error message: </p>
  
  <blockquote>
    <p>Update requires a valid UpdateCommand when passed DataRow collection
    with modified rows.</p>
  </blockquote>