Private Sub Command1_Click()<br>Dim Db AS Dao.Database<br>Dim Password As String<br>Dim DbPath As string<br><br>Password="1111"<br>DbPath="c:\Temp\Db1.mdb"<br>Set Db=OpenDataBase(DbPath,True,False,";pwd=" & Password) <br>
For ADO (or the ADO Data Control), use the "Microsoft.Jet.OLEDB.4.0" provider. <br>For DAO, go to Project menu, and choose References to use the "Microsoft DAO 3.6 Object Library." <br>If you use the generic Data-Control, you need to open a DAO 3.6 recordset and then assign...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.