Ho provato con i parametri:
[Code ]
if cmbComune.KeyValue<>null then
if cmbRepertorio.KeyValue<>null then

CercaRepertorio.Params.ParamByName('Comune').AsInt eger:=Comune.FieldByName('Comune_id').AsInteger;
CercaRepertorio.Params.ParamByName('Intervallo').A sInteger:=Repertorio.FieldByName ('Rep_id').AsInteger;

CercaRepertorio.DataSet.CommandText:= 'select * from "Repertorio" where Rep_comune=:Comune and Rep_intervallo=:Intervallo';
CercaRepertorio.active:=true;
[/code]
Errore:
Unknown picture file extension (.)

Faccio presente che ho inserito JPEG nella sezione Uses della Unit, e che i miei file hanno l'estenzione jpg ovviemente.