Ver Mensaje Individual
  #2  
Antiguo 27-04-2007
Avatar de droguerman
droguerman droguerman is offline
Miembro
 
Registrado: abr 2005
Ubicación: tierra
Posts: 999
Reputación: 20
droguerman Va por buen camino
consejo, porque no usas format a veces las consultas salen más transparentes:


Código Delphi [-]

    QueryUpdate.SQL.Text:= format('UPDATE autos SET CANTIDAD=%d+%d WHERE codigo="%s" ', 
[ dbEdit3.field.asInteger, strToIntDef(txtAgregar.text, 0), txtCodigo.text ] );

bueno dije a veces

ah por cierto, en TDBEdit resulta mejor trabajar con la propiedad field que con el text
__________________
self.free;

Última edición por droguerman fecha: 27-04-2007 a las 19:17:06.
Responder Con Cita