im using VB6
my word document has an MS Access mdb as the datasource, its password
protected.. i've tried passing the password to the PasswordDocument property
of the OpenDataSource method, but access still prompts me for a password..
anyone know how to stop access from prompting me??
Jezebel - 27 Oct 2004 12:35 GMT
What was wrong with the answer you got last time?
> im using VB6
>
> my word document has an MS Access mdb as the datasource, its password
> protected.. i've tried passing the password to the PasswordDocument property
> of the OpenDataSource method, but access still prompts me for a password..
> anyone know how to stop access from prompting me??
jas - 27 Oct 2004 13:28 GMT
i dnt want users to be typing in the database password when Access prompts
them. its needs to be automated...
> im using VB6
>
> my word document has an MS Access mdb as the datasource, its password
> protected.. i've tried passing the password to the PasswordDocument property
> of the OpenDataSource method, but access still prompts me for a password..
> anyone know how to stop access from prompting me??
Ken Halter - 27 Oct 2004 15:28 GMT
> i dnt want users to be typing in the database password when Access prompts
> them. its needs to be automated...
Try changing...
PasswordDocument:="myPassword",
to
Password=myPassword,
or
Password="myPassword",
fwiw, I used the ADO data control's connection string wizard to build a
connection string that opens a password protected access db. Try the wizard.

Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..