Ver Mensaje Individual
  #6  
Antiguo 03-09-2021
maildarofer maildarofer is offline
Registrado
 
Registrado: dic 2010
Posts: 4
Reputación: 0
maildarofer Va por buen camino
Thumbs up

Muchas gracias!. Tenías razón.
Le he indicado el tipo de dato "ftDate" que para ello he tenido que añadir la librería Data.DB, sino me decía Error: ftDate Undeclared
Luego esto me daba error
Código Delphi [-]
FDQuery.ParamByName('fecha_nacimiento').AsDate := null;

Y he tenido que ponerlo así:

Código Delphi [-]
FDQuery.ParamByName('fecha_nacimiento').DataType := ftDate;
FDQuery.ParamByName('fecha_nacimiento').Clear();

Y como decía antes, he tenido que añadir la librería:
Código Delphi [-]
USES Data.DB;

Solucionado!!. Muchas gracias a todos por vuestra ayuda.
Responder Con Cita