If you are trying to make a filter on a table it is much more convenient to use TADOQuery
and put:
TADOQuery.SQL.Text := 'SELECT * FROM TableName WHERE ((details_id = 15) OR (details_id = 16) OR (details_id = 17)) AND (personel_id = 5)'
where TableName
is the name of your actual table. It is also much easier to manipulate with parameter values this way.
Even better you can write this:
TADOQuery.SQL.Text := 'SELECT * FROM TableName WHERE ((details_id IN (15, 16, 17)) AND (personel_id = 5)'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…