简体   繁体   中英

Open password protected Microsoft access file through vb.net

I am trying to open access databse mdb file with below code.

Public connection As OleDbConnection 
connection = New OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0;Data Source='" & database & "';Jet OLEDB:Database Password =12345")

connection.Open()

But it gives error that "Not a valid password" Please help!

这是一个工作示例 ,请注意,密码在使用连接字符串生成器创建的连接字符串中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM