Hi! Can someone help me? I'm stuck with this code, when I start to choose an item in combobox the error shows. This is CRUD operation, I'm trying to fix this many times but still give an error. How do I fix this? The user information must be shown in Datagridview after they click the add button.
status1 and categ are combobox.
What I have tried:
Private Sub add1_Click(sender As Object, e As EventArgs) Handles Insert.Click
ds = New DataSet
adapter = New OleDbDataAdapter("insert into [tblmerchant] ([DESCRIPTION],[PRICE],[STATUS], [CATEGORIES], [IMAGE PATH]) VALUES " &
"('" & descrip.Text & "','" & price.Text & "','" & status1.SelectedItem.ToString() & "','" & categ.SelectedItem.ToString() & "','" & path1.Text & "')", conn)