title: The SelectCommand property has not been initialized before calling 'Fill' problem
body: <p>The SelectCommand property has not been initialized before calling 'Fill' problem:</p>
  
  <pre><code>Private Sub DeleteButton_Click(sender As Object, e As EventArgs) Handles DeleteButton.Click
      Dim tables As DataTableCollection
      Dim source1 As New BindingSource
      Dim row As New Integer
      Try
          ds = New DataSet
          tables = (ds.Tables)
          da = New OleDbDataAdapter
          da.Fill(ds, "Booking")
          Dim cmdstr As String = "delete * from [Booking] where ID = " &amp; DataGridView1.SelectedRows(0).Cells(0).Value.ToString()
          Dim cmd As New OleDbCommand(cmdstr, objCon)
          da.SelectCommand = cmd
          objCon.Open()
          cmd.ExecuteNonQuery()
          objCon.Close()
      Catch ex As Exception
          MessageBox.Show(ex.Message)
      End Try
  End Sub
  </code></pre>