Dec 2, 2001 #1 ofsouto Programmer Apr 29, 2000 185 BR Dear Sirs I protected my system database (.MDB) with password and now I need to know how can I open it with VB code. Thanks
Dear Sirs I protected my system database (.MDB) with password and now I need to know how can I open it with VB code. Thanks
Dec 2, 2001 #2 Guru2B Programmer May 24, 2000 77 GB Pass the password and user name with the connection string to the DB Upvote 0 Downvote
Dec 3, 2001 #3 BigDaddy MIS Sep 25, 1998 22 US Sample below: Assume that ADO is referenced within project Dim cnnNorthwind As ADODB.Connection 'Create the connection. cnnNorthwind.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Program Files\Microsoft" & _ "Office\Office\Samples\Northwind.mdb;" & _ "User Id=<UserName>;" & _ "Password=<password>;" Upvote 0 Downvote
Sample below: Assume that ADO is referenced within project Dim cnnNorthwind As ADODB.Connection 'Create the connection. cnnNorthwind.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Program Files\Microsoft" & _ "Office\Office\Samples\Northwind.mdb;" & _ "User Id=<UserName>;" & _ "Password=<password>;"