delphi 用table的locate 或是insert 时报错 operation not applicable
代码这样的:if not tblanswer.Active then
tblanswer.Open;
tblanswer.Locate('RQ;DEPTID',vararrayof([zxRQ,tdept]),[]);
tblanswer.Insert;
tblanswer.FieldByName('RQ').AsDateTime:=zxRQ;
tblanswer.FieldByName('DEPTID').AsString:=tdept;
tblanswer.FieldByName('XSJE').AsCurrency:=tXSJE;
tblanswer.FieldByName('JC').AsInteger:=tJC;
tblanswer.FieldByName('bshow').AsInteger:=0;
tblanswer.Post;
end;
运行的第四局时报错,,郁闷啊 。。。是在找不到原因、、、、求帮助!!!!我刚申请的号分不多……