没有密码是这样,但是用了密码就不行了。麻烦有时间的老师教下 谢谢ADOConnection1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+DataFile+
';Persist Security Info=false;';access
';Persist Security Info=false;';access
调试欢乐多
------------------------------
const
Provider = 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;'+
'Jet OLEDB:Database Password="%s"'; begin
con1.LoginPrompt := False;
con1.ConnectionString := Format(Provider, [MDBFile, PW]);
con1.Connected := True;
end;
以上为自动生成的字符串
con1.ConnectionString := Format(Provider, [数据库文件路径, 数据库密码]);