reference a Word bookmark within a text box from Access

  • Thread starter Thread starter WC Justice
  • Start date Start date
W

WC Justice

I am using vba in Access 2000 that opens a Word document and populates it at
bookmarks via automation. This is all working just fine. The problem is
that when I added a text box and inserted a bookmark, Access
can not find the new bookmark. It looks like there is a separate bookmark
collection for those within text boxes, or something like that, but I don't
how to reference it. Can you help please?

Thanks
 
A textbox on a word document is a Formfield and you need to reference it as
follows:
objDoc.FormFields("Nameofbookmark").Result = YourValue

Dave
 
Back
Top