query2.sql.text:='SELECT tovar FROM table_tovar WHERE kategory = ' + query1.fieldbyname('kat').asinteger; query2.open;