View Single Post
  #1   Report Post  
Daniele Pinai
 
Posts: n/a
Default Access Protect Database with Word 2000 Automation

Hi,
I use VB6 for mailmerge a Word2000 document connect with access2000 database.
My customer throw my program set a access database password.
I'd like to do a word's print from my program without change
doc's files.
I'd tried with this code....

x = WrdApp.Application.Documents.Open( myDocument )
!!!!!!! Here Word Ask me database's Password
With WrdApp.ActiveDocument.MailMerge
.DataSource.ConnectString = (IMPOSSIBLE Is ReadOnly)
.Destination = wdSendToPrinter
.Execute
End With

Can i solve this problem without change word's document ??
Sorry for my bad english !!!!!

Thank's
Daniele Pinai (Italy)