[AccessD] Access 2 Word Bookmarks

Bryan Carbonnell carbonnb at gmail.com
Mon Jun 26 11:02:30 CDT 2006


On 6/26/06, Bob Heygood <bheygood at abestsystems.com> wrote:
> Sorry, probably a critical part of this is I am using text form fields in my
> .dot.

Yea, critical pice is right :)

> Are you familiar with these?

Yes. I'm quite familiar with them.

> The bookmark is "associated" with a particular text form field.
> When "type texting" after selecting a field in Word, it properly inserts the
> text, but deletes the bookmark.
> Your method of just having a bookmark works perfectly and the bookmark is
> preserved.
> But.
> My client wants to have the option of someone maybe manually inserting text
> later. And of course then me capturing it via Access VBA.

If the doc/dot a protected form in Word? Is that the end result? If
not, lose the text form fields and just use plain old bookmarks.

If you want to keep the form fields, you will first need to protect
the doc first before adding the data to the field. Siomething like:

doc.Protect wdProtectionFormField

(Double check with the intellisense, since I'm going from a failing memory)

You can then unprotect the doc to add other info at the bookmarks.

One of the parameters for Protect tells Word to keep and data in form
fields when you protect the doc. If you don't use it, any data in the
form field will be lost when the doc gets protected.

Clear as mud?

-- 
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"



More information about the AccessD mailing list