[求助]如何VB与Access的密码连接?
<p>在做VB与CAD时,遇到一个需要VB与Access的连接问题,如下连接语句,在access没有密码时,是可以连接通讯的,但是当给access加了密码后,就进不去了:</p><p>Dim dbWR As Workspace<br/>Dim dbDB As Database<br/>Dim dbDL As Recordset<br/>Set dbWR = CreateWorkspace("", "admin", "", dbUseJet)<br/>Set dbDB = dbWR.OpenDatabase("C:\Program Files\Database.mdb", False, True, "")<br/>Set dbDL = dbDB.OpenRecordset("H-Data", dbOpenDynaset, dbReadOnly)</p><p>如果设置密码为123456,则做了如下调整,可还是不行:</p><p>Set dbWR = CreateWorkspace("", "admin", "123456", dbUseJet)</p><p>求解…………</p> "\Database.mdb;Jet OLEDB:Database Password=123456;Everyone,000000"
页:
[1]