F
ff_ff
Unregistered / Unconfirmed
GUEST, unregistred user!
求助,adoQuery 更新数据表出现 Access violation at address 1F453E63 in module 'msado15.dll' 错误(50分)<br />代码如下:
procedure TForm1.Button2Click(Sender: TObject);
var
i:Integer;
sqlstr : String;
begin
if ListBox_Showfix.Items.Strings[ListBox_Showfix.itemindex]<>'' then
begin
with query1 do
begin
close;
sql.clear;
sqlstr := 'update filefix set record=''1'' where filefix.fix='''+getvalue+''' ';
showmessage(sqlstr);
sql.add(sqlstr);
ExecSQL;
end;
ListBox1.Items.Insert(0,ListBox_Showfix.Items.Strings);
ListBox_Showfix.Items.Delete(i);
end;
end;
sqlstr放在access中执行 没有错误。
procedure TForm1.Button2Click(Sender: TObject);
var
i:Integer;
sqlstr : String;
begin
if ListBox_Showfix.Items.Strings[ListBox_Showfix.itemindex]<>'' then
begin
with query1 do
begin
close;
sql.clear;
sqlstr := 'update filefix set record=''1'' where filefix.fix='''+getvalue+''' ';
showmessage(sqlstr);
sql.add(sqlstr);
ExecSQL;
end;
ListBox1.Items.Insert(0,ListBox_Showfix.Items.Strings);
ListBox_Showfix.Items.Delete(i);
end;
end;
sqlstr放在access中执行 没有错误。