OLEbound linking and a passworded doc

P

pvp

I have an 'OLEbound' field in my database. This is linked
to a Word doc using the following code, which works a
treat on a doc that has no passwords protecting it:

"
' ASSOCIATE the new file with this record
Me.OLEBound63.OLETypeAllowed = acOLELinked
Me.OLEBound63.SourceDoc = _"filemane.doc"
Me.OLEBound63.Action = acOLECreateLink

"

However, if the Word document in question has read and
write passwords, the .Action statement causes the
document to be opened and it asks for the passwords.
Inconvenient.
Is there any way I can avoid that? apart of course from
having the document not password-protected...

Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top