ADOTable1.Active:=true;
ADOTable1.Edit;
ADOQuery14.Close;
ADOQuery14.SQL.Clear;
s:='select * from a02 where callsign='+''''+DBComboBox2.Text+'''' +'and voy='+''''+DBComboBox4.Text+'''' +'and port='+''''+DBComboBox3.Text+'''';
ADOQuery14.SQL.Add(s);
ADOQuery14.Open;
DataSource1.DataSet:=adoquery14;
// ADOQuery14.Active:=true;
ADOQuery14.Edit;
这是查询里面的代码,查询后(查询好用),但是我一点击dbgrid进行修改的时候,就报错:ADOQuery14:dataset not in edit or insert mode。我已经edit了阿?怎么回事,请指教!
ADOTable1.Edit;
ADOQuery14.Close;
ADOQuery14.SQL.Clear;
s:='select * from a02 where callsign='+''''+DBComboBox2.Text+'''' +'and voy='+''''+DBComboBox4.Text+'''' +'and port='+''''+DBComboBox3.Text+'''';
ADOQuery14.SQL.Add(s);
ADOQuery14.Open;
DataSource1.DataSet:=adoquery14;
// ADOQuery14.Active:=true;
ADOQuery14.Edit;
这是查询里面的代码,查询后(查询好用),但是我一点击dbgrid进行修改的时候,就报错:ADOQuery14:dataset not in edit or insert mode。我已经edit了阿?怎么回事,请指教!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货