Hello everybody once again. Recently as I was finishing some basic insert queries I came upon a puzzle which till now I dont know what I am doing wrong. I have a very basic insert query which just would not execute throwing an error saying that there is a syntax error in my query. I have checked over and over again going back and forward from my database columns to the actual code. I cannot find what I am doing wrong. Here is the query:
Please some help will be greatly appreciated. Thanks for your time and effort.
cheers
VB.NET:
Dim query4 As String
query4 = " insert into sizes (barcode, name, code, 40, totalquan) values (" & barcode1 & ", '" & NameTextBox.Text & "', '" & ClothecodeTextBox.Text & "', " & S40TextBox.Text & ", " & totalTextBox.Text & ")"
Dim cmd4 As MySqlCommand = New MySqlCommand(query4, conn)
cmd4.ExecuteNonQuery()
conn.Close()
Please some help will be greatly appreciated. Thanks for your time and effort.
cheers