Klappt es denn so?
Delphi-Quellcode:
qryManage.SQL.Clear;
qryManage.SQL.Add('SELECT DISTINCT section FROM racks WHERE rack = :rack');
qryManage.SQL.Add('ORDER BY section ASC');
qryManage.Params.Parambyname('rack').asinteger:= ptInput;
qryManage.Open;
ggf.
qryManage.Params.Parambyname('rack').value
oder
qryManage.Parambyname('rack').asinteger
Ich kenne DBExpress nicht so gut.
Gruß
K-H