用adoquery 查询表字段 在写到 dbconbobox里 dbcombobox.items.clear; with qry1 do begin close; sql.clear; sql.add('select 字段 from 表'); open; first; while not eof do begin if dbcombobox.items.itemindexof(fieldvalues['字段'])=-1 then dbcombobox.items.add(fieldvalues['字段']); next; end; end;