> When I set up a Data Link to an Access database, I have a problem if the
> database has a password.
[quoted text clipped - 6 lines]
>
> Tom
That's something I jsut got done fighting with, too. It turns out that if a
*database* password is defined then one is *always* asked for it upon any
kind of connection, no matter what. Delete the database password and set up,
in the database Security section, for Users and their Passwords, instead of
using a database password. I'm pretty sure that one can not pass a
*database* password through the ADO connect string, under any circumstance,
but you certainly can pass the User and the User's Password as defined in
the database Security section. Also, you might have to specify (you can do
it in the connect string) which System.mdb file is being used (the path and
name for it) for the User/Groups and their Passwords. I hope that helps, and
I'm sure someone will correct me if I said anything inaccurately!
Thomas Kerr - 27 Aug 2005 20:38 GMT
Thanks for the reply. As I am new at database programming I am struggling a
bit with the concept. I have tried what you have suggested but haven't
gotten it correct yet. I have trouble with the structure/syntax of the
connection string.
Why is not possible to set up the parameters right in the data link setup
and the DE setup?
> > When I set up a Data Link to an Access database, I have a problem if the
> > database has a password.
[quoted text clipped - 18 lines]
> name for it) for the User/Groups and their Passwords. I hope that helps, and
> I'm sure someone will correct me if I said anything inaccurately!
Paul Clement - 29 Aug 2005 15:01 GMT
¤ Thanks for the reply. As I am new at database programming I am struggling a
¤ bit with the concept. I have tried what you have suggested but haven't
¤ gotten it correct yet. I have trouble with the structure/syntax of the
¤ connection string.
¤
¤ Why is not possible to set up the parameters right in the data link setup
¤ and the DE setup?
Look on the All tab. There is a property call Jet OLEDB:Database Password where you can specify the
database password.
Paul
~~~~
Microsoft MVP (Visual Basic)