Es un tema recurrente en los foros, usa parámetros:
Código Delphi [-]
qry.sql.text := ' select * from table where fecha = :mifecha';
qry.parambyname('mifecha').AsDAte := date();
qry.open;
Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
|