Sql Server 2000 Humberto escreveu: > > Q banco de dados está utilizando? > > ----- Original Message ----- > From: Rodrigo Brito > To: delphi-br@yahoogrupos.com.br <mailto:delphi-br%40yahoogrupos.com.br> > Sent: Thursday, February 22, 2007 3:47 PM > Subject: [delphi-br] Select não funciona > > Boa TArde > > tenho esse select na qual faz a filtragem dos meus registros para consulta > mas quando vou escolher a data ele não funciona não retorna nenhum > valor o resto funciona > no sql o campo data está como datetime > > if radiobutton1.Checked then > if DateTimePicker1.Checked then > begin > adoconmovimento.Active := false; > adoconmovimento.SQL.Clear; > adoconmovimento.SQL.Add ('select * from movimento > a,categoria b,material c,solicitante d where a.codmat = c.codmat and > a.tipo = ''E''and b.codcat = c.codcat and _a.data = '+ > datetostr(DateTimePicker1.date) +_ ' and b.nome like > '+QuotedStr(DBLookupComboBox1.Text+'%')+ ' and c.nome like > '+QuotedStr(DBLookupComboBox2.Text+'%')+ 'order by a.data'); > adoconmovimento.active := true; > > end > > -- > > ---------------------------------------------------------- > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: > 22/2/2007 11:55 > > [As partes desta mensagem que não continham texto foram removidas] > > > > __________ NOD32 2075 (20070222) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com
--