为什么总是提示dataset not in edit or insert mode
各位大虾,我在向一数据库表中写入数据是,运行总是提示dataset not in edit or insert mode,程序如下,请各位帮组
with RateTable do
begin //1
Open;
DisableControls;
try
insert;
IndexFieldNames:='Number';
FieldByName('Number').AsString:=CBNumber.Text ;
FieldByName('StandardRate').AsFloat:=StandardCount;
FieldByName('BackgroundRate').AsFloat:=BgAfterCount;
post;
finally
EnableControls;
end;
end;