Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / October 2004



Tip: Looking for answers? Try searching our database.

Word Mail Merge Automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jas - 27 Oct 2004 10:42 GMT
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..

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.