N
nfy
Unregistered / Unconfirmed
GUEST, unregistred user!
var
i:integer;
For i:=1 to 3 do
with Query1 do
begin
close;
sql.clear;
sql.Add('insert into TEMP(hCode,Ymonth,QiChu,Attrib)');
sql.add('select HEADCODE,YEMONTH,VALUE,ATTRIB from "H:/kczw/zw00'+IntToStr(i)+'/zwye2002.db"');
sql.Add('where yemonth="00" and headcode="'+edit1.text+'"');
Prepare;
ExecSQL;
end;
end;
执行以上代码出现以下提示
Project xxx.exe raised exception class EAccessViolation with message Access violation at address 4C5EE67E in module 'IDSQL32.dll'
请帮忙解决
i:integer;
For i:=1 to 3 do
with Query1 do
begin
close;
sql.clear;
sql.Add('insert into TEMP(hCode,Ymonth,QiChu,Attrib)');
sql.add('select HEADCODE,YEMONTH,VALUE,ATTRIB from "H:/kczw/zw00'+IntToStr(i)+'/zwye2002.db"');
sql.Add('where yemonth="00" and headcode="'+edit1.text+'"');
Prepare;
ExecSQL;
end;
end;
执行以上代码出现以下提示
Project xxx.exe raised exception class EAccessViolation with message Access violation at address 4C5EE67E in module 'IDSQL32.dll'
请帮忙解决