Ready to get started with anonymous questions today? It's easy! Learn more.
Private Sub addNewItem() Dim drNewRow As DataRow = m_dtItems.NewRow() ' m_DBConnection.Open() m_daDataAdapter.Fill(m_dtItems) ' drNewRow("ItemName") = Trim(tbxItemName.Text) drNewRow("ItemType") = Trim(tbxItemType.Text) drNewRow("ItemPrice") = Trim(tbxItemPrice.Text) m_dtItems.Rows.Add(drNewRow) m_cbCommandBuilder = New OleDb.OleDbCommandBuilder(m_daDataAdapter) m_daDataAdapter.Update(m_dtItems) <<< The error happens here m_DBConnection.Close() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.