procedure TForm1.Button1Click(Sender: TObject);
begin
ADOConnection1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\One\One.mdb;Persist Security Info=False';
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select count(*) from user');
ADOQuery1.Open;
if ADOQuery1.RecordCount <> 0 then
begin
Application.MessageBox('密码正确','提示',mb_ok);
end
end;
////////////////////////////////////
可是我的One.mdb里有user表的啊
begin
ADOConnection1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\One\One.mdb;Persist Security Info=False';
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select count(*) from user');
ADOQuery1.Open;
if ADOQuery1.RecordCount <> 0 then
begin
Application.MessageBox('密码正确','提示',mb_ok);
end
end;
////////////////////////////////////
可是我的One.mdb里有user表的啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货