text1对应于字段1
text2对应于字段2
当按确定控件时,把该条信息删除

解决方案 »

  1.   

    dim rst as new adodb.recordset
    dim cnn as new adodb.connection
    cnn.open "provider=msdasql.1;.................."
    rst.open "select 字段1,字段2 from tablename",cnn,adopendynamic,adlockpessimistic
    if rst.eof=false then
       rst.movefirst
       text1.text=rst.fields(0).value
       text2.text=rst.fields(1).value
    end if刪除:
    rst.delete
    rst.movefirst  '刪除后回到第一筆
      

  2.   

    如果你是用adodc來綁定textbox,就用adodc.recordset.delete
      

  3.   

    忘了说了,我用的是data控件~
      

  4.   

    who can tell me??????????