http://expert.csdn.net/Expert/topic/1480/1480469.xml?temp=.9852411
另外,打开的数据库连接用完了要随时关闭,还要用Set Rst = NoThing

解决方案 »

  1.   

    在过程结束时关闭过程中使用的所有ADO对象
    if rs.state = adStateOpen then
       rs.close
    set rs =nothing
    endif
    if cnn.state = adStateOpen then
       cnn.close
       set cnn = nothing
    endif
      

  2.   

    请问楼上的:
    该代码是不是给每个FORM都要添加?
      

  3.   

    只在你程序结束是将所有rs和connection 对象设置为Noting