if adodc1.Recordset.State then adodc1.Recordset.Close
set adodc1.Recordset=nothing

解决方案 »

  1.   

    楼上的办法不能断开连接,只是关闭了recordset。
    你要set adodc1 = nothing
      

  2.   

    我试过了,是关闭了recordset.
    无论如何,谢谢大家.
    可是谁告诉我电源的插头在哪儿?日落雁行斜一边偷偷的不怀好意的笑着,一边顺着DevilXelloss(傑洛仕)
    家里的烟囱爬了下去,嘿嘿~~~嘿嘿~~~嘿嘿~~~嘿嘿~~~嘿嘿~~~
      

  3.   

    if adodc1.Recordset.State then adodc1.Recordset.Close
    Set adodc1.Recordset=nothing
    if adodc1.State then adodc1.Close
    Set adodc1=nothing这样该很完整了吧
    Recordset 和 adodc 都关掉了