|
-
September 14th, 1999, 10:40 AM
#1
DB Password
Hi,
I've secure my database with an admin Password. Now i want to access the Database external via VB. How can i tell Access the password for the database?
I've tried the described method, putting the password in the connect property of the bound data control, but it doesn't work.
Any Ideas?
-
September 14th, 1999, 08:16 PM
#2
Re: DB Password
Hello,
If u use ADO and OLEDB to access Access DB, use the property "Jet OLEDB atabase Password" of the Jet OLEDB.
-
September 15th, 1999, 07:38 AM
#3
Re: DB Password
I'am using VB5 with the normal Data Control i'll bind it at runtime to an password protected Access Database. The Data Control does not have an property password
-
September 15th, 1999, 08:18 PM
#4
Re: DB Password
See the Connect property in the MSDN !
-
September 20th, 1999, 03:42 AM
#5
Re: DB Password
I put in the connect Property "UID=admin;PWD=test"
I've tried some other variations but i always get the Message "Invalid Password".
The Password was set directly in Access
-
September 21st, 1999, 06:52 AM
#6
-
September 21st, 1999, 09:00 PM
#7
Re: DB Password
Try the following:
Dim db As Database
pwwd = password.Text
Set dbs11 = OpenDatabase("c:\db.mdb", False, False, ";Pwd=" & pwwd)
I ran into the same problem you are and I went round and round with it. It didn't work for me until I set the Password equal to a variable then used the opendatabase method with the aforementioned arguments.
Hope this helps.
-
September 24th, 1999, 07:42 AM
#8
Re: DB Password
OK :-)
The result now is that i get the Errormessage "ODBC Connectio to Database xxx failed"
I don't know what i can do anymore :-(((
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
|