
Kolay geldin
begin
personel.close;
personel.SQL.Clear;
personel.SQL.Add('select * from genel where ALAN = '''+Edit1.Text+''''+'and (tercih1secim BETWEEN :ilk AND :son) ');
apersonel.Parameters.ParamByName('ilk').Value:=atamaSIRA_NO.Value;
personel.Parameters.ParamByName('SON').Value:=atamaSIRA_NO.Value;
personel.open;
Ben şu şekilde denedim ama olmadı
var
sayi:string;
begin
sayi:='1'
personel.close;
personel.SQL.Clear;
personel.SQL.Add('select * from genel where ALAN = '''+Edit1.Text+''''+'and (tercih(pchar(sayi))secim BETWEEN :ilk AND :son) ');
apersonel.Parameters.ParamByName('ilk').Value:=atamaSIRA_NO.Value;
personel.Parameters.ParamByName('SON').Value:=atamaSIRA_NO.Value;
personel.open;