Ver Mensaje Individual
  #2  
Antiguo 05-04-2006
Avatar de vtdeleon
vtdeleon vtdeleon is offline
Miembro
 
Registrado: abr 2004
Ubicación: RD & USA
Posts: 3.236
Reputación: 24
vtdeleon Va por buen camino
Saludos


Mejor utiliza Parametros, intenta esto
Código Delphi [-]
  ZQInserta.SQL.Clear;
  ZQInserta.SQL.add('INSERT INTO `ventas` (`venta_fecha`,`venta_fact`,`venta_total`');
  ZQInserta.SQL.Add('VALUES (:fecha,VenFact,:VenTot);');
  ZQInserta.ParamByName(:fecha).AsDate:=Now;
  ZQInserta.ParamByName(:VenFact).AsDate:=ventafactura;//Variable
  ZQInserta.ParamByName(:VenTot).AsDate:=ventatotal;/variable
  ZQInserta.ExecSQL;
 showMessage (sd);
__________________
Van Troi De León
(Not) Guía, Code vB:=Delphi-SQL, ¿Cómo?
Viajar en el tiempo no es teóricamente posible, pues si lo fuera, ya estarían aqui contándonos al respecto!
Responder Con Cita