Re: [delphi-br] Select com count

2007-05-14 Por tôpico Eduardo Castro Alves
ParamByName é para passagem de parametro. Use FieldByName que vai funcionar. Eduardo rzzanatta escreveu: > > tenho essa select: > > with dtmmovimento.qryGeracalendmensal do > begin > SQL.Clear; > SQL.Add('SELECT count(fi.CO_FICHAPREVENTIVA) ficha'); > SQL.Add(' FROM ifichapreventiva fi,fichapre

Re: [delphi-br] Select com count

2007-05-14 Por tôpico BandaLemuel
nal Message - From: rzzanatta To: delphi-br@yahoogrupos.com.br Sent: Monday, May 14, 2007 2:48 PM Subject: [delphi-br] Select com count tenho essa select: with dtmmovimento.qryGeracalendmensal do begin SQL.Clear; SQL.Add('SELECT count(fi.CO_FICHAPREVENTIVA) ficha&#x

[delphi-br] Select com count

2007-05-14 Por tôpico rzzanatta
tenho essa select: with dtmmovimento.qryGeracalendmensal do begin SQL.Clear; SQL.Add('SELECT count(fi.CO_FICHAPREVENTIVA) ficha'); SQL.Add(' FROM ifichapreventiva fi,fichapreventiva f, periodo p, categoria c'); SQL.Add(' WHERE f.CO_FICHAPREVENTIVA=fi.CO_FICHAPREVENTIVA AND