请问:如何实现combobox的list数据的动态更新
现在给出了Adodc 控件并且已经连好了数据库

解决方案 »

  1.   

    combo1.clear
    if Adodc.recordset.eof and Adodc.recordset.bof then exit subAdodc.recordset.moveFirst
    do while not Adodc.recordset.eof
      combo1.add Adodc.recordset.fields("<FieldName>")
      Adodc.recordset.moveNext
    loop
      

  2.   

    给定 Adodc1.RecordSource = "select 车牌号 from car_inform"
    combo1如何获得“车牌号”
      

  3.   

    Adodc1.RecordSource = "select 车牌号 from car_inform"
    do while not Adodc.recordset.eof
      combo1.add Adodc.recordset.fields("车牌号")
      Adodc.recordset.moveNext
    loop
      

  4.   

    这跟cang__lee 是一样的阿
    还是有问题啊
    combo 中没有 add 属性阿