我用AdoQuery及一些TDBComboBox\TDBEdit\TDBLookupComboBox控件来进行数据输入,AdoQuery只连接到一个表SpAddDec,SQL语句是: Select * from SpAddDec 。
在窗口上有一按钮,用来提交更改,代码是:procedure TForm1.bbtPostClick(Sender: TObject);
begin
 if AdoQuery1.State in [dsEdit,dsInsert] then
   AdoQuery1.Post;
end;但程序运行时,一按提交按钮,就出错:
Project Project1.exe raised exception class EOleException with message 'E42000:(-206) The specified table (spAddDec) is not in the database.'Process stoped.Use Stop or Run to continue.这是为什么啊!