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
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
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
3 matches
Mail list logo