|
-
May 24th, 2000, 08:27 PM
#1
Thread Starter
New Member
Does anyone know how to use the ado data control with a password protected database. I have used the connection string wizard to create the connection and entered the password but the control will not authenticate to the database. If I remove the password it works fine. I have tried the Microsoft jet 3.15 and 4.0 ole db.
-
Jun 5th, 2000, 08:47 PM
#2
Hyperactive Member
Hello WandaB,
Try this source:
Set ProjectsDB = OpenDatabase(DbSettings, True, False, ";pwd=YourPassword")
To change your password:
ProjectsDB.NewPassword "OldPassWord", "NewPassWord")
Good luck,
Michelle.
-
Jun 5th, 2000, 11:26 PM
#3
PowerPoster
ADO with password
Hi WandaB, I think this what you looking for...
Assume SysDb is you database filepath.
Code:
Dim MyConn as ADODB.Connection
Dim SysDB$
Set MyConn = New Connection
With MyConn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=" & SysDB & "; Jet OLEDB:Database Password= <Your Password>"
.Mode = adModeReadWrite
.Open
End With
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|