三分布式数据库系统时,客户端在运行时出现这个提示,错误提示adoquery1:cannot perorm this operation on an open dataset

解决方案 »

  1.   

    不能操作一個打開的數據集,你要先Close那個阿doquery,再進行你下面的工作,要不代碼貼出來看看
      

  2.   

    adoquery1正在使用或处于打开状态,你查一下是否有其它的地方在使用它
      

  3.   

    ClientDataSet1.Close;
    我关了也不行,并且我客户端启动时还是能够显示出服务器端的数据的,只是不知道为什么还是弹出这个错误,在我向服务器传送SQL语句时也出错~~~如下下面的语句:
    use:=edit1.Text;
    pas:=edit2.Text;
    ClientDataSet1.Close;
    ClientDataSet1.CommandText:='select * from grade where username='''+use+'''and password='''+pas+'''';
    ClientDataSet1.Open;