Ho fatto la prova con questo codice che ho inserito all'apertura del form:
Non è che funzioni molto...codice:Provincia.active:=true; Provincia.open; cmbProvincia.Enabled:=true; if cmbProvincia.Text='' then Comune.DataSet.CommandText:='select * from "Comune"' else Comune.Params.ParamByName('PROVINCIA').AsInteger:=Provincia.FieldByName('Provincia_id').AsInteger; Comune.DataSet.CommandText:='select * from "Comune" where "PROVINCIA_ID"=:PROVINCIA'; Comune.Active:=true; Comune.Open; cmbComune.Enabled:=true;![]()

Rispondi quotando