Excel ADODB VBA error msg 'Not a Valid Password'

后端 未结 2 1154
既然无缘
既然无缘 2020-12-07 03:05

I am trying to open a Connection to Password protected AccessDB, through Excel VBA.

I am using the following connection string

conn.Provider = \"Mic         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 03:46

    Or you could do this.

        conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & dbPath & ";Jet OLEDB:Database Password=" & pwd
    

提交回复
热议问题