请问下列问题如何解决。“CommandText changes are not allowed”
在多层系统里我做了如下查询却出错我不知是怎么产生的如何解决请教各位
程序如下:
DcomConnect1.ClientDataSet1.Close;
DcomConnect1.ClientDataSet1.CommandText:='select * from table1 where productname = 'ddddd'';
DcomConnect1.ClientDataSet1.Open;
出错信息为:
CommandText changes are not allowed