第一:你的dbcombobox没有和具体的字段相连
第二:你的dbcombobox所连的字段根本就没有值。

解决方案 »

  1.   

    items属性的代码怎么写?
    用dbcombobox1.items.add('select dptname from dept');
    对不对?
    这个表还能不能跟dbgrid相连?
      

  2.   

    query.first ;
    dbcombobox.items.clear;
    while not query.eof do
      begin
        dbcombobox.items.add(query.fieldbyname('dptname').asstring);
        query.next;
      end;
      

  3.   

    同意jabmoon的意见,当然,你的dbcombobox的datasource设了没有,其对应的数据集控件是否为active = true
      

  4.   

    设了,还是连不上,
    你指的数据集控件是不是table的属性?
    急死了