Hola espero ayude
Yo lo hice asi
sql:= 'Select count (bandera) from tiempocamion where bandera = '+ inttostr(aqdumy2.FieldValues['id']);
AQchecatiempocamion.SQL.Clear;
AQchecatiempocamion.SQL.Add(sql);
AQchecatiempocamion.Active:=true;
variable := AQchecatiempocamion.FieldValues['Expr1000'];
Es lo mismo para el max
nota. si no sirve me avisas porfa
__________________
omar velazquez
|