Lid |
|
Beste allemaal,
ik krijg een syntaxisfout...ik heb niet eerder update gebruikt...wie kan mij even helpen..?
Dit is de code..
SQL = "Update Producten SET Productnaam = '" & txtProductnaam.Text & "', Aantal = '" & txtAantal.Text & "', Prijs = '" & txtPrijs.Text & "', Categorie = '" & comCategorie.Text & "', Omschrijving = '" & txtOmschrijving_Producten.Text & "'"
Dim cmd As New OleDb.OleDbCommand(SQL, oCon)
oCon.Open()
cmd.ExecuteNonQuery()
oCon.Close()
LoadProducten()
SQL = "Update Producten SET Productnaam = '" & txtProductnaam.Text & "', Aantal = '" & txtAantal.Text & "', Prijs = '" & txtPrijs.Text & "', Categorie = '" & comCategorie.Text & "', Omschrijving = '" & txtOmschrijving_Producten.Text & "'" Dim cmd As New OleDb.OleDbCommand(SQL, oCon) oCon.Open() cmd.ExecuteNonQuery() oCon.Close() LoadProducten()
De verbinding roept het ergens anders vandaan.
|