B
bonwood
Unregistered / Unconfirmed
GUEST, unregistred user!
做了一个简单程序,在‘Combobox’中显示从Access数据库中搜出的内容,在‘FormCreate’中加入以下语句:
procedure TForm1.FormCreate(Sender: TObject);
begin
with DM2.ADOTable1 do
begin
open;
first;
end;
end;
end.
在运行时总是在“With DM2.adotable1 do”处显示如下错误
‘Access violation at address 0045985C in module 'Pro_Main.exe'.read of address 00000078’
在DM2中有两个组件,ADOConn,和ADOTable;
procedure TForm1.FormCreate(Sender: TObject);
begin
with DM2.ADOTable1 do
begin
open;
first;
end;
end;
end.
在运行时总是在“With DM2.adotable1 do”处显示如下错误
‘Access violation at address 0045985C in module 'Pro_Main.exe'.read of address 00000078’
在DM2中有两个组件,ADOConn,和ADOTable;