Visual Basic - Error

Life is soft - evento anual de software empresarial
 
Vista:

Error

Publicado por Joanne (1 intervención) el 05/08/2004 10:06:23
A que se refiere este error?

Error '-2147217887(80040e21)' en tiempo de ejecucion :
no se puede actualizar el campo
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:Error

Publicado por Rueben (129 intervenciones) el 06/08/2004 01:23:13
ese tipo de error es de sql, seguramente estas haciedo algo mal, si queres mandame la parte del codigo donde te da el error y me fijo en que puede ser el problema
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

RE:Error

Publicado por Joanne (3 intervenciones) el 06/08/2004 08:36:14
este es el codigo, en la linea nº-10, "tb2.update(3)", el campo en acces es autonumerico.

Private Sub Command1_Click()
List1.ListIndex = 0
While List1.ListIndex <= List1.ListCount
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
List4.ListIndex = List1.ListIndex
tb2.Update (0), List1.Text
tb2.Update (1), Text2.Text
tb2.Update (2), List3.Text
tb2.Update (3), Val(Text5.Text)
tb2.Update (4), List4.Text
tb2.Update (5), Combo1.Text
Set consulta = bd1.Execute("select * from productos where idproducto='" & CStr(Trim(List1.Text)) & "'")
consulta.Update (1), Val(List4.Text)
consulta.Update (3), consulta.Fields(3) + Val(List3.Text)
List1.ListIndex = List1.ListIndex + 1
tb2.AddNew
Wend
tb2.CancelUpdate
End Sub
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