Fórum Problemas com datas no FireBird #234261
25/05/2004
0
preciso fazer um relatorio no qual tenho de informar o periodo de datas, estou usando a seguinte consulta SQL no codigo:
dm.SQLDSCirurgia.CommandText := ´select * from cirurgias where porte = :porte and data between :inicio and :fim´;
dm.SQLDSCirurgia.params[0].value:=porte.text;
dm.SQLDSCirurgia.params[1].value:=inicio.Date;
dm.SQLDSCirurgia.params[2].value:=fim.date;
quando a query é aberta da o seguinte erro:
unassigned code
Alguem poderia me ajudar? Desde já agradeço...
Jsaraujo
Curtir tópico
+ 0Posts
25/05/2004
Rômulo Barros
[url]www.firebase.com.br/fb/[/url]
Gostei + 0
25/05/2004
Fer_nanda
dm.SQLDSCirurgia.CommandText := ´select * from cirurgias where porte = ´ + porte.text + ´ and data between ´+ datetostr(inicio.Date)+´ and ´ + datetostr(fim.date);
Gostei + 0
26/05/2004
Jsaraujo
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)