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; ZQInserta.ParamByName(:VenTot).AsDate:=ventatotal;/variable
ZQInserta.ExecSQL;
showMessage (sd);