Project Project801.exe raised exception class EDatabaseError with message 'tblDept':Cannot perform this operation on a closed dataset'.Process stopped.Use Step or Run to continue.有谁能帮个忙吗?解决一下,谢谢啦。
...全文
716打赏收藏
大问题啊!
Project Project801.exe raised exception class EDatabaseError with message 'tblDept':Cannot perform this operation on a closed dataset'.Process stopped.Use Step or Run to continue.有谁能帮个忙吗?解决一下,谢谢啦。
楼上都已经说了……
另外:select * from dept where dno:=dno这里有问题哦。。。。。
dept是表名,不用加.db,倒是where dno:=dno……楼主想用动态参数?where dno=:pdno才正确。
with ADOQuery1 do
begin
Close;
Sql.Clear;
Sql.Add('select * from dept where dno=:dno');
Parameters[0].Value:=参数值;
Open;
end;