Joaquin.Delgado
Member
Hello, Have a problem with the insert statement in vb.net 2010 with sql server, have my table but it keeps give me an error, attached table and code, hope anybody help me with that
cmd.CommandText = "INSERT IGNORE INTO Op10(Operacion, Piezas, Fecha, Hora) VALUES(" & TextBox1.Text & "," & TextBox2.Text & "," & TextBox3.Text & "," & TextBox4.Text & ")"
Operacion varchar(50)
Piezas varchar(50)
Fecha varchar(50)
Hora varchar(50)
cmd.CommandText = "INSERT IGNORE INTO Op10(Operacion, Piezas, Fecha, Hora) VALUES(" & TextBox1.Text & "," & TextBox2.Text & "," & TextBox3.Text & "," & TextBox4.Text & ")"
Operacion varchar(50)
Piezas varchar(50)
Fecha varchar(50)
Hora varchar(50)