Update Doc Property field in text box using automation
Posted on 2005-03-03
I have a word template that is used to create a new document from within an Access database. When the Access VBA routine is run, data from Database is used to update the document properties of a new word document based on my template. This works fine and the document is created correctly, properties are filled with daa and bookmarks are filled with text as appropriate.
The document template has a number of fields in the header including three text boxes. These update fine and display the correct information.
The main body of the document has two text boxes with fields in them but these do not get updated along with everything else. The information is in the custom document property but currently these fields have to be updated manually.
The code usedto update the fields within the document is as follows... (appword is my word document object)
.Visible = True
Anyone know why this might be happening?
Thanks in advance