有两个ADOQuery控件(qa,qb)。其中,qa(select * from tbA),qb(select * from tbB)
我想同时对tbA和tbB两个记录集都添加新记录。现在我是这样处理的,两个按钮,按钮A是把qA/qB置为insert状态,按钮B是把qA/qB进行post。procedure TForm.Button1Click(Sender: TObject);
begin
    qA.Insert;
    qB.Insert;
end;procedure TForm.Button2Click(Sender: TObject);
begin
    qA.Post;
    qB.Post;
end;
点击Insert按钮,在输入框里填写内容后,点击Post按钮,跳出如下对话框:Debugger Exception NotificationProject Pro.exe raised exception class EDatabaseError with message 'qB:Dataset not in edit or insert mode'. Process stopped. Use Step or Run to continue.
我按了insert按钮,不是两个记录集都变成insert状态了吗?为什么还会有这样的提示?