delphi+access数据库,动态连接数据库代码编译时报错
下面是代码procedureTPKsystemmain.FormCreate(Sender:TObject);varconnetstr:string;beginconne...
下面是代码
procedure TPKsystemmain.FormCreate(Sender: TObject);
var connetstr:string;
begin
connetstr:=ExtractFilePath(ParamStr(0))+'PKsystem.mdb';
Dmodule.datecont.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+connetstr+';Persist Security Info=False;Jet OLEDB:Database Password=admin';
dmodule.datecont.Open;
end; 展开
procedure TPKsystemmain.FormCreate(Sender: TObject);
var connetstr:string;
begin
connetstr:=ExtractFilePath(ParamStr(0))+'PKsystem.mdb';
Dmodule.datecont.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+connetstr+';Persist Security Info=False;Jet OLEDB:Database Password=admin';
dmodule.datecont.Open;
end; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询