
03/02/2010, 12:09
|
| | Fecha de Ingreso: mayo-2008
Mensajes: 38
Antigüedad: 17 años Puntos: 0 | |
me falta operador... Esta es la instruccion en visual basic
InstruccionSQL.CommandText = "UPDATE Clientes SET Numero = '" & Me.Text2(6).Text & "', Direccion = '" & Me.Text2(8).Text & "', Poblacion = '" & Me.Text2(9).Text & "' WHERE (Nombre = '" & Me.Text2(7).Text & "') " & _
"IF @@ROWCOUNT = 0 " & _
"INSERT INTO Clientes (Numero, Nombre, Direccion, Poblacion) VALUES( '" & Me.Text2(6).Text & "','" & Me.Text2(7).Text & "', '" & Me.Text2(8).Text & "', '" & Me.Text2(9).Text & "' )"
InstruccionSQL.Execute
y me sale el error que me falta operador. ¿alguien sabe algo? |