Visual Basic - QUIEN ME CHECA UNA SINTAXIS, PORFAVOR!

Life is soft - evento anual de software empresarial
 
Vista:

QUIEN ME CHECA UNA SINTAXIS, PORFAVOR!

Publicado por roberto (70 intervenciones) el 12/09/2001 03:43:39
ALGUIEN PUEDE DECIRME SI LA SINTAXIS ESTA BIEN O MAL?

cmdAccion.CommandText = "INSERT INTO COMPRAS (ordendecompraId, Rancho, Contacto) VALUES (" & CInt(Text1.Text) & "," & Text2.Text & "," & Text3.Text & ")"

DONDE ordendecompraid es un campo numerico y Rancho y Contacto son tipo texto.

ME MARCA EL ERROR DE "Missing operator in query expression"

MIL GRACIAS.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:QUIEN ME CHECA UNA SINTAXIS, PORFAVOR!

Publicado por alberto (278 intervenciones) el 12/09/2001 09:00:33
Los valores para campos de texto en sentencias SQL deben ir entre comilla simples.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar