rodrigodeoz
16-10-2007, 20:26:45
deseo hacer una culta de busqueda por fecha, mi base de datos esta en MySQL,
La busque la pongo en un MonthCalendar
asi esta mi busqueda:
with dm.queryx do
begin
close;
sql.clear;
sql.add('select * from clientes where fecha=:fecha');
parambyname('fecha').asdate:=calendario.date;
open;
end;
pero me marca un error:
Project autos.exe raidsed exception class EVariantTypeCasError with message 'Could not convert variant of type (Null) into type (Double)'. Process stopped. Use Step or Run to Continue.
bueno espero me puedan ayudar para realizar la busqueda por fecha.
La busque la pongo en un MonthCalendar
asi esta mi busqueda:
with dm.queryx do
begin
close;
sql.clear;
sql.add('select * from clientes where fecha=:fecha');
parambyname('fecha').asdate:=calendario.date;
open;
end;
pero me marca un error:
Project autos.exe raidsed exception class EVariantTypeCasError with message 'Could not convert variant of type (Null) into type (Double)'. Process stopped. Use Step or Run to Continue.
bueno espero me puedan ayudar para realizar la busqueda por fecha.